From 4e488962375db6303d6817248aaf5858c396265e Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 21 Oct 2021 22:25:25 +0200 Subject: [PATCH] Remove USR1 signal handler when spawning child processes --- src/output/mist_out.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/output/mist_out.cpp b/src/output/mist_out.cpp index 9f3a3302..b2eefee5 100644 --- a/src/output/mist_out.cpp +++ b/src/output/mist_out.cpp @@ -6,6 +6,13 @@ #include int spawnForked(Socket::Connection &S){ + { + struct sigaction new_action; + new_action.sa_handler = SIG_IGN; + sigemptyset(&new_action.sa_mask); + new_action.sa_flags = 0; + sigaction(SIGUSR1, &new_action, NULL); + } mistOut tmp(S); return tmp.run(); }