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>
This commit is contained in:
Denys Vlasenko 2015-03-02 17:38:18 +01:00
parent fa535f3e48
commit dac8d80f77

View File

@ -345,14 +345,12 @@ int runsvdir_main(int argc UNUSED_PARAM, char **argv)
#endif #endif
{ {
unsigned deadline = (need_rescan ? 1 : 5); unsigned deadline = (need_rescan ? 1 : 5);
sig_block(SIGCHLD);
#if ENABLE_FEATURE_RUNSVDIR_LOG #if ENABLE_FEATURE_RUNSVDIR_LOG
if (rplog) if (rplog)
poll(pfd, 1, deadline*1000); poll(pfd, 1, deadline*1000);
else else
#endif #endif
sleep(deadline); sleep(deadline);
sig_unblock(SIGCHLD);
} }
#if ENABLE_FEATURE_RUNSVDIR_LOG #if ENABLE_FEATURE_RUNSVDIR_LOG