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-w32-dac8d80f77af617effadc50f6be47768685d81b0.tar.gz
busybox-w32-dac8d80f77af617effadc50f6be47768685d81b0.tar.bz2
busybox-w32-dac8d80f77af617effadc50f6be47768685d81b0.zip
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)
345#endif 345#endif
346 { 346 {
347 unsigned deadline = (need_rescan ? 1 : 5); 347 unsigned deadline = (need_rescan ? 1 : 5);
348 sig_block(SIGCHLD);
349#if ENABLE_FEATURE_RUNSVDIR_LOG 348#if ENABLE_FEATURE_RUNSVDIR_LOG
350 if (rplog) 349 if (rplog)
351 poll(pfd, 1, deadline*1000); 350 poll(pfd, 1, deadline*1000);
352 else 351 else
353#endif 352#endif
354 sleep(deadline); 353 sleep(deadline);
355 sig_unblock(SIGCHLD);
356 } 354 }
357 355
358#if ENABLE_FEATURE_RUNSVDIR_LOG 356#if ENABLE_FEATURE_RUNSVDIR_LOG