diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-05 15:24:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-05 15:24:04 +0200 |
commit | d3e1090308b6d3c55e01a2000a743b73605ddd7f (patch) | |
tree | 57783b69d314c4b8998880ad6c38389989656782 /runit | |
parent | ac444861b0b0212803ef775c366c41c4c020b1f1 (diff) | |
download | busybox-w32-d3e1090308b6d3c55e01a2000a743b73605ddd7f.tar.gz busybox-w32-d3e1090308b6d3c55e01a2000a743b73605ddd7f.tar.bz2 busybox-w32-d3e1090308b6d3c55e01a2000a743b73605ddd7f.zip |
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 ecab8cdf5..61ea240ff 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -380,7 +380,10 @@ static void startservice(struct svdir *s) | |||
380 | xdup2(logpipe.wr, 1); | 380 | xdup2(logpipe.wr, 1); |
381 | } | 381 | } |
382 | } | 382 | } |
383 | /* Non-ignored signals revert to SIG_DFL on exec anyway */ | 383 | /* Non-ignored signals revert to SIG_DFL on exec anyway. |
384 | * But we can get signals BEFORE execl(), this is unlikely | ||
385 | * but wouldn't be good... | ||
386 | */ | ||
384 | /*bb_signals(0 | 387 | /*bb_signals(0 |
385 | + (1 << SIGCHLD) | 388 | + (1 << SIGCHLD) |
386 | + (1 << SIGTERM) | 389 | + (1 << SIGTERM) |