[git commit] ifplugd: close signal race

Denys Vlasenko vda.linux at googlemail.com
Sun Apr 29 11:46:49 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=bc2e70b4a25e58264cdc236803c32f5a9a0c7e4c
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

function                                             old     new   delta
ifplugd_main                                        1109    1117      +8

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/ifplugd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/networking/ifplugd.c b/networking/ifplugd.c
index 5059eaf73..9a67d24d8 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;
 		}
 


More information about the busybox-cvs mailing list