Fix build on various architectures

This commit is contained in:
o9000
2017-09-08 16:35:17 +02:00
parent f2741116a7
commit d21f758158
2 changed files with 3 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ void init_signals()
// Set signal handlers
signal_pending = 0;
struct sigaction sa_chld = {.sa_handler = SIG_DFL, .sa_flags = SA_NOCLDWAIT | SA_RESTART};
struct sigaction sa_chld = {.sa_handler = SIG_IGN};
sigaction(SIGCHLD, &sa_chld, 0);
struct sigaction sa = {.sa_handler = signal_handler, .sa_flags = SA_RESTART};