[project @ 2005-11-11 14:41:01 by simonmar]
authorsimonmar <unknown>
Fri, 11 Nov 2005 14:41:01 +0000 (14:41 +0000)
committersimonmar <unknown>
Fri, 11 Nov 2005 14:41:01 +0000 (14:41 +0000)
waitForProcess: if the process died with a signal, just return the
exit status rather than EINTR.

This means a segfault shows up as (ExitFailure 139) rather than
an exception complaining about system call interruption.  If the
client wants a more unix-ish interpretation, they probably should be
using System.Posix.Process anyway.

cbits/runProcess.c

index a0c2453..b89e130 100644 (file)
@@ -216,7 +216,7 @@ int waitForProcess (ProcHandle handle)
     else
        if (WIFSIGNALED(wstat))
        {
-           errno = EINTR;
+           return wstat;
        }
        else
        {