From dc29d55b30d95f0838499fb48217e1d22e39d07d Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Mon, 1 Oct 2012 11:48:14 +0100 Subject: Indicate whether a process dumped core in the ProcessStatus The Bool field of Terminated is new, as is the documentation: data ProcessStatus = Exited ExitCode -- ^ the process exited by calling -- @exit()@ or returning from @main@ | Terminated Signal Bool -- ^ the process was terminated by a -- signal, the @Bool@ is @True@ if a core -- dump was produced | Stopped Signal -- ^ the process was stopped by a signal deriving (Eq, Ord, Show) This is an API change, hence will need a major version bump. --- cbits/HsUnix.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cbits/HsUnix.c') diff --git a/cbits/HsUnix.c b/cbits/HsUnix.c index aba5445..db97de2 100644 --- a/cbits/HsUnix.c +++ b/cbits/HsUnix.c @@ -14,6 +14,7 @@ int __hsunix_wifsignaled (int stat) { return WIFSIGNALED(stat); } int __hsunix_wtermsig (int stat) { return WTERMSIG(stat); } int __hsunix_wifstopped (int stat) { return WIFSTOPPED(stat); } int __hsunix_wstopsig (int stat) { return WSTOPSIG(stat); } +int __hsunix_wcoredump (int stat) { return WCOREDUMP(stat); } #ifdef HAVE_RTLDNEXT void *__hsunix_rtldNext (void) {return RTLD_NEXT;} -- cgit v1.2.3