diff options
author | Denys Vlasenko | 2021-06-05 15:24:04 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-06-05 15:24:04 +0200 |
commit | d3e1090308b6d3c55e01a2000a743b73605ddd7f (patch) | |
tree | 57783b69d314c4b8998880ad6c38389989656782 /runit | |
parent | ac444861b0b0212803ef775c366c41c4c020b1f1 (diff) | |
download | busybox-d3e1090308b6d3c55e01a2000a743b73605ddd7f.zip busybox-d3e1090308b6d3c55e01a2000a743b73605ddd7f.tar.gz |
tcp/udpsvd: robustify SIGCHLD handling
function old new delta
if_verbose_print_connection_status - 40 +40
tcpudpsvd_main 1798 1794 -4
connection_status 31 - -31
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 40/-35) Total: 5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit')
-rw-r--r-- | runit/runsv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index ecab8cd..61ea240 100644 --- a/runit/runsv.c +++ b/runit/runsv.c @@ -380,7 +380,10 @@ static void startservice(struct svdir *s) xdup2(logpipe.wr, 1); } } - /* Non-ignored signals revert to SIG_DFL on exec anyway */ + /* Non-ignored signals revert to SIG_DFL on exec anyway. + * But we can get signals BEFORE execl(), this is unlikely + * but wouldn't be good... + */ /*bb_signals(0 + (1 << SIGCHLD) + (1 << SIGTERM) |