summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-04-29 11:46:49 (GMT)
committerDenys Vlasenko <vda.linux@googlemail.com>2018-04-29 11:46:49 (GMT)
commitbc2e70b4a25e58264cdc236803c32f5a9a0c7e4c (patch)
tree2567ee078e04ece738f657dd1ab1d643b5f8d74a
parent77bf05dfe39c507eafc6421ac66b4613aab5509f (diff)
downloadbusybox-bc2e70b4a25e58264cdc236803c32f5a9a0c7e4c.tar.gz
busybox-bc2e70b4a25e58264cdc236803c32f5a9a0c7e4c.tar.bz2
ifplugd: close signal race
function old new delta ifplugd_main 1109 1117 +8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/ifplugd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/ifplugd.c b/networking/ifplugd.c
index 5059eaf..9a67d24 100644
--- a/networking/ifplugd.c
+++ b/networking/ifplugd.c
@@ -686,6 +686,8 @@ int ifplugd_main(int argc UNUSED_PARAM, char **argv)
goto exiting;
default:
bb_got_signal = 0;
+ /* do not clear bb_got_signal if already 0, this can lose signals */
+ case 0:
break;
}