diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-02-18 00:33:10 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-02-18 00:33:10 +0000 |
commit | 9a3e10869c7581543aa7fc37b44e25cbba895f4b (patch) | |
tree | bdea23ca0fce6f90acdc07d11871527f686cc270 /src | |
parent | 2bc4067357640f143fc417fb92fbf89e70047a8f (diff) | |
download | skalibs-9a3e10869c7581543aa7fc37b44e25cbba895f4b.tar.xz |
Modify wait_status to return 256 when WIFSIGNALED
Diffstat (limited to 'src')
-rw-r--r-- | src/include/skalibs/djbunix.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) ; |