System.Process.Concurrent

concurrent-output-1.7.7: Ungarble output from several threads or commands

Copyright | 2015 Joey Hess <id@joeyh.name>
License | BSD-2-clause
Safe Haskell | None
Language | Haskell98

System.Process.Concurrent

Description

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.

Synopsis

- 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) #

Calls `createProcessConcurrent`

You should use the waitForProcess in this module on the resulting ProcessHandle. Using System.Process.waitForProcess instead can have mildly unexpected results.

waitForProcess :: ProcessHandle -> IO ExitCode #

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.