ifplugd: close signal race
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 29 Apr 2018 11:46:49 +0000 (13:46 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 29 Apr 2018 11:46:49 +0000 (13:46 +0200)
function                                             old     new   delta
ifplugd_main                                        1109    1117      +8

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ifplugd.c

index 5059eaf73a1dbaca77f16d447569b1b542dff13b..9a67d24d84f11343cc4854efea8e8d78908b97eb 100644 (file)
@@ -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;
                }