Always initialise sa.sa_flags to 0.
This commit is contained in:
parent
413a995ad7
commit
e242892ff2
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue