s6-linux-init-shutdownd: copy & paste error?

From: Guillermo <gdiazhartusch_at_gmail.com>
Date: Wed, 17 Jul 2019 19:54:41 -0300

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.0.2.0

The same condition is tested twice, and the second 'if' branch prints
a wrong warning, so I suppose only the first and last branches are the
ones meant to be there, and the second one is a mistake.

G.
Received on Wed Jul 17 2019 - 22:54:41 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC