From b6407c4253b2037cec7390364b4f0f69ccea6b0e Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Wed, 4 May 2022 20:06:36 +0200 Subject: [PATCH] stacktrace-on-signal: Use kill(getpid(), sig_num) kill(0, ...) re-raises the signal to every processes in the process group which may impact unrelated processes. Concretely, in our CI pipeline, a segfaulting Suricata process killed the test driver. --- src/suricata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/suricata.c b/src/suricata.c index 24ffa0fe64..b246ce13f1 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -342,7 +342,7 @@ static void SignalHandlerUnexpected(int sig_num, siginfo_t *info, void *context) terminate: // Propagate signal to watchers, if any - kill(0, sig_num); + kill(getpid(), sig_num); } #undef UNW_LOCAL_ONLY #endif /* HAVE_LIBUNWIND */ -- 2.47.2