[commit: packages/process] master: Don't overwrite `std_err` in the CreateProcess record and add a note which handles are ignored. (650fadf)

git at git.haskell.org git at git.haskell.org
Thu Mar 19 11:38:12 UTC 2015


Repository : ssh://git@git.haskell.org/process

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/650fadfb7e80897c6ceb759d223ca5703e7df994/process

>---------------------------------------------------------------

commit 650fadfb7e80897c6ceb759d223ca5703e7df994
Author: Bartosz Nitka <bnitka at fb.com>
Date:   Fri Feb 27 06:20:57 2015 -0800

    Don't overwrite `std_err` in the CreateProcess record and add a note which handles are ignored.


>---------------------------------------------------------------

650fadfb7e80897c6ceb759d223ca5703e7df994
 System/Process.hsc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/System/Process.hsc b/System/Process.hsc
index 13c36ad..e9d470f 100644
--- a/System/Process.hsc
+++ b/System/Process.hsc
@@ -422,6 +422,8 @@ readProcess cmd args = readCreateProcess $ proc cmd args
 -- >  > readCreateProcess (shell "pwd" { cwd = "/etc/" }) ""
 -- >  "/etc\n"
 --
+-- Note that @Handle at s provided for @std_in@ or @std_out@ via the CreateProcess
+-- record will be ignored.
 -- /Since: 1.2.3.0/
 
 readCreateProcess
@@ -432,7 +434,6 @@ readCreateProcess cp input = do
     let cp_opts = cp {
                     std_in  = CreatePipe,
                     std_out = CreatePipe,
-                    std_err = Inherit
                   }
     (ex, output) <- withCreateProcess_ "readCreateProcess" cp_opts $
       \(Just inh) (Just outh) _ ph -> do



More information about the ghc-commits mailing list