Repository : ssh://darcs.haskell.org//srv/darcs/packages/process On branch : master
http://hackage.haskell.org/trac/ghc/changeset/68ba490d6691f55eab19a249379144831055e2ac >--------------------------------------------------------------- commit 68ba490d6691f55eab19a249379144831055e2ac Author: Simon Marlow <[email protected]> Date: Thu Aug 25 11:13:38 2011 +0100 document that readProcess throws an IOError exception if the process exits with a non-zero exit code. (patch from Judah Jacobson on cvs-ghc) >--------------------------------------------------------------- System/Process.hs | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/System/Process.hs b/System/Process.hs index bba4f52..6ae1ac5 100644 --- a/System/Process.hs +++ b/System/Process.hs @@ -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. _______________________________________________ Cvs-libraries mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-libraries
