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

Copyright2015 Joey Hess <id@joeyh.name>
LicenseBSD-2-clause
Safe HaskellNone
LanguageHaskell98

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

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.

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.