1 {-# OPTIONS -cpp -fffi #-}
2 -----------------------------------------------------------------------------
4 -- Module : System.Process.Internals
5 -- Copyright : (c) The University of Glasgow 2004
6 -- License : BSD-style (see the file libraries/base/LICENSE)
8 -- Maintainer : libraries@haskell.org
9 -- Stability : experimental
10 -- Portability : portable
12 -- Operations for creating and interacting with sub-processes.
14 -----------------------------------------------------------------------------
17 module System.Process.Internals (
18 ProcessHandle(..), PHANDLE,
21 #if !defined(mingw32_TARGET_OS) && !defined(__MINGW32__)
22 import System.Posix.Types ( CPid )
24 import Data.Word ( Word32 )
27 -- ----------------------------------------------------------------------------
30 {- | A handle to a process, which can be used to wait for termination
31 of the process using 'waitForProcess'.
33 None of the process-creation functions in this library wait for
34 termination: they all return a 'ProcessHandle' which may be used
35 to wait for the process later.
37 #if !defined(mingw32_TARGET_OS) && !defined(__MINGW32__)
43 newtype ProcessHandle = ProcessHandle PHANDLE