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.
else
if (WIFSIGNALED(wstat))
{
- errno = EINTR;
+ return wstat;
}
else
{