diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/supervision/s6-supervise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c index f9a9872..aa53e33 100644 --- a/src/supervision/s6-supervise.c +++ b/src/supervision/s6-supervise.c @@ -247,7 +247,7 @@ static void tryfinish (int wstat, int islast) char *cargv[4] = { "finish", fmt0, fmt1, 0 } ; selfpipe_finish() ; fmt0[uint_fmt(fmt0, WIFSIGNALED(wstat) ? 255 : WEXITSTATUS(wstat))] = 0 ; - fmt1[uint_fmt(fmt1, WIFSIGNALED(wstat))] = 0 ; + fmt1[uint_fmt(fmt1, WTERMSIG(wstat))] = 0 ; if (flagsetsid) setsid() ; execve("./finish", cargv, (char *const *)environ) ; _exit(111) ; |