aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-03-02 17:38:18 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2015-03-02 17:38:55 +0100
commitdac8d80f77af617effadc50f6be47768685d81b0 (patch)
tree6d62fd8e1035519e5a3a5c7d46975fc6037fd905
parentfa535f3e485456a7fd85db060532ea6539670af0 (diff)
downloadbusybox-dac8d80f77af617effadc50f6be47768685d81b0.tar.gz
runsvdir: do not block SIGCHLD around poll/sleep
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@googlemail.com>
-rw-r--r--runit/runsvdir.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/runit/runsvdir.c b/runit/runsvdir.c
index 809c48a51..a08af3bae 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