From e242892ff2738e7f92374e5421896cc7d49e3ac2 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Sat, 20 Jun 2020 17:55:35 +0100 Subject: [PATCH] Always initialise sa.sa_flags to 0. --- src/signalhandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/signalhandler.cpp b/src/signalhandler.cpp index 1e99414f..bf273545 100755 --- a/src/signalhandler.cpp +++ b/src/signalhandler.cpp @@ -174,6 +174,7 @@ bool CSignalUnix::setSignalHandled ( int sigNum, bool state ) else { sa.sa_handler = SIG_DFL; + sa.sa_flags = 0; } return ::sigaction ( sigNum, &sa, nullptr ) == 0;