[commit: process] master: document that readProcess throws an IOError exception if the process (68ba490)
Simon Marlow
marlowsd at gmail.com
Thu Aug 25 13:45:24 CEST 2011
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 <marlowsd at gmail.com>
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.
More information about the Cvs-libraries
mailing list