Reset signal mask at startup
This commit is contained in:
parent
407aef3786
commit
23ddb47e0c
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ void init_signals()
|
|||
// Set signal handlers
|
||||
signal_pending = 0;
|
||||
|
||||
reset_signals();
|
||||
|
||||
struct sigaction sa_chld = {.sa_handler = SIG_IGN};
|
||||
sigaction(SIGCHLD, &sa_chld, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue