Commit 68ba490d authored by Simon Marlow's avatar Simon Marlow
Browse files

document that readProcess throws an IOError exception if the process

exits with a non-zero exit code. (patch from Judah Jacobson on
cvs-ghc)
parent 1f055b86
......@@ -342,6 +342,9 @@ waitForProcess ph = do
-- Output is returned strictly, so this is not suitable for
-- interactive applications.
--
-- This function throws an 'IOError' if the process 'ExitCode' is
-- anything other than 'ExitSuccess'.
--
-- Users of this function should compile with @-threaded@ if they
-- want other Haskell threads to keep running while waiting on
-- the result of readProcess.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment