if (WIFSIGNALED(wstat))
//...
else if (WEXITSTATUS(wstat))
//…
else if (WEXITSTATUS(wstat))
//…
Good catch, thanks!
Fixed in the latest git. Bugfix release coming at some point in the
future. (I'm not hurrying because it's only a display bug.)
--
Laurent
Hello,
s6-linux-init-shutdownd's code contains something like this in
function run_stage3():
if (WIFSIGNALED(wstat))
//...
else if (WEXITSTATUS(wstat))
//…
else if (WEXITSTATUS(wstat))
//…
*
https://git.skarnet.org/cgi-bin/cgit.cgi/s6-linux-init/plain/src/shutdown/s6-linux-init-shutdownd.c?h=v1