projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa535f3
)
runsvdir: do not block SIGCHLD around poll/sleep
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 2 Mar 2015 16:38:18 +0000
(17:38 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 2 Mar 2015 16:38:55 +0000
(17:38 +0100)
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>
runit/runsvdir.c
patch
|
blob
|
history
diff --git
a/runit/runsvdir.c
b/runit/runsvdir.c
index 809c48a510e6b20a42b8f2012a28d1d63c961d33..a08af3baedd60b67c55c912beb9233560579f100 100644
(file)
--- 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