Commit 23ddb47e authored by o9000's avatar o9000

Reset signal mask at startup

parent 407aef37
...@@ -39,6 +39,8 @@ void init_signals() ...@@ -39,6 +39,8 @@ void init_signals()
// Set signal handlers // Set signal handlers
signal_pending = 0; signal_pending = 0;
reset_signals();
struct sigaction sa_chld = {.sa_handler = SIG_IGN}; struct sigaction sa_chld = {.sa_handler = SIG_IGN};
sigaction(SIGCHLD, &sa_chld, 0); sigaction(SIGCHLD, &sa_chld, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment