From 9a3e10869c7581543aa7fc37b44e25cbba895f4b Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 18 Feb 2015 00:33:10 +0000 Subject: Modify wait_status to return 256 when WIFSIGNALED --- src/include/skalibs/djbunix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/skalibs/djbunix.h b/src/include/skalibs/djbunix.h index 387e05a..765fb3b 100644 --- a/src/include/skalibs/djbunix.h +++ b/src/include/skalibs/djbunix.h @@ -83,7 +83,7 @@ extern pid_t waitpid_nointr (pid_t, int *, int) ; #define wait_nohang(wstat) waitpid_nointr(-1, (wstat), WNOHANG) extern pid_t wait_pid_nohang (pid_t, int *) ; extern int wait_pids_nohang (pid_t const *, unsigned int, int *) ; -#define wait_status(w) (WIFSIGNALED(w) ? 126 : WEXITSTATUS(w)) +#define wait_status(w) (WIFSIGNALED(w) ? 256 : WEXITSTATUS(w)) extern unsigned int wait_reap (void) ; extern int waitn (pid_t *, unsigned int) ; extern int waitn_reap (pid_t *, unsigned int) ; -- cgit v1.2.3