[git commit] runsvdir: do not block SIGCHLD around poll/sleep
Denys Vlasenko
vda.linux at googlemail.com
Mon Mar 2 16:38:55 UTC 2015
commit: http://git.busybox.net/busybox/commit/?id=dac8d80f77af617effadc50f6be47768685d81b0
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
There is no reason to do so. We do not even have SIGCHLD handler.
function old new delta
runsvdir_main 1077 1057 -20
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
runit/runsvdir.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/runit/runsvdir.c b/runit/runsvdir.c
index 809c48a..a08af3b 100644
--- a/runit/runsvdir.c
+++ b/runit/runsvdir.c
@@ -345,14 +345,12 @@ int runsvdir_main(int argc UNUSED_PARAM, char **argv)
#endif
{
unsigned deadline = (need_rescan ? 1 : 5);
- sig_block(SIGCHLD);
#if ENABLE_FEATURE_RUNSVDIR_LOG
if (rplog)
poll(pfd, 1, deadline*1000);
else
#endif
sleep(deadline);
- sig_unblock(SIGCHLD);
}
#if ENABLE_FEATURE_RUNSVDIR_LOG
More information about the busybox-cvs
mailing list