summaryrefslogtreecommitdiff
path: root/src/supervision
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-05 22:54:14 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-05 22:54:14 +0000
commitf84f150acd91c3c1c74795155d8201f1f9285c74 (patch)
treed5eab53f14975569f19d433b28119dcfaa76aeaf /src/supervision
parent90b12bd71bb9fc79a4640b9112c13ef529d0196a (diff)
downloads6-f84f150acd91c3c1c74795155d8201f1f9285c74.tar.xz
Bugfix: WTERMSIG, not WIFSIGNAL for 2nd argument to ./finish in s6-supervise
Diffstat (limited to 'src/supervision')
-rw-r--r--src/supervision/s6-supervise.c2
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) ;