From d3e1090308b6d3c55e01a2000a743b73605ddd7f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 5 Jun 2021 15:24:04 +0200 Subject: 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 --- runit/runsv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'runit/runsv.c') 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) -- cgit v1.1