[commit: packages/process] master: Revert "Fix bug in multi-threaded waitForProcess" (4575acb)

git at git.haskell.org git at git.haskell.org
Wed Jul 19 21:19:07 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/4575acb4919f24c95b14e346e32daa1103147791/process

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

commit 4575acb4919f24c95b14e346e32daa1103147791
Author: Charles Cooper <cooper.charles.m at gmail.com>
Date:   Fri Feb 3 10:09:20 2017 -0500

    Revert "Fix bug in multi-threaded waitForProcess"
    
    This reverts commit d67484fe64a9a42e7daf944a9396b4ec46c060f3.


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

4575acb4919f24c95b14e346e32daa1103147791
 cbits/runProcess.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/cbits/runProcess.c b/cbits/runProcess.c
index 1e97ad1..ae184c8 100644
--- a/cbits/runProcess.c
+++ b/cbits/runProcess.c
@@ -425,11 +425,6 @@ int waitForProcess (ProcHandle handle, int *pret)
 
     if (waitpid(handle, &wstat, 0) < 0)
     {
-        if (errno == ECHILD)
-        {
-            *pret = 0;
-            return 1;
-        }
         return -1;
     }
 



More information about the ghc-commits mailing list