Copyright | 2015 Joey Hess <id@joeyh.name> |
---|---|
License | BSD-2-clause |
Safe Haskell | None |
Language | Haskell98 |
The functions exported by this module are intended to be drop-in replacements for those from System.Process, when converting a whole program to use System.Console.Concurrent.
Not currently available on Windows.
- createProcess :: CreateProcess -> IO (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle)
- waitForProcess :: ProcessHandle -> IO ExitCode
Documentation
createProcess :: CreateProcess -> IO (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle) Source
Calls createProcessConcurrent
You should use the waitForProcess in this module on the resulting ProcessHandle. Using System.Process.waitForProcess instead can have mildly unexpected results.
Not available on Windows.
waitForProcess :: ProcessHandle -> IO ExitCode Source
Calls waitForProcessConcurrent
You should only use this on a ProcessHandle obtained by calling createProcess from this module. Using this with a ProcessHandle obtained from System.Process.createProcess etc will have extremely unexpected results; it can wait a very long time before returning.