Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-06-05 16:24:04 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2021-06-05 16:24:04 +0300
commitd3e1090308b6d3c55e01a2000a743b73605ddd7f (patch)
tree57783b69d314c4b8998880ad6c38389989656782 /runit
parentac444861b0b0212803ef775c366c41c4c020b1f1 (diff)
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.c5
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)
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)