From b959bfb92f069ebe2911d1239155fc80beceb283 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 11 Nov 2005 14:41:01 +0000 Subject: [PATCH] [project @ 2005-11-11 14:41:01 by simonmar] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbits/runProcess.c b/cbits/runProcess.c index a0c2453..b89e130 100644 --- a/cbits/runProcess.c +++ b/cbits/runProcess.c @@ -216,7 +216,7 @@ int waitForProcess (ProcHandle handle) else if (WIFSIGNALED(wstat)) { - errno = EINTR; + return wstat; } else { -- 1.7.10.4