This commit is contained in:
Luke Smith
2020-06-02 15:45:47 -04:00
parent 744d33a345
commit da7df2f2c2

View File

@@ -121,7 +121,11 @@ void setupsignals()
sa.sa_sigaction = buttonhandler;
sa.sa_flags = SA_SIGINFO;
sigaction(SIGUSR1, &sa, NULL);
signal(SIGCHLD, SIG_IGN);
struct sigaction sigchld_action = {
.sa_handler = SIG_DFL,
.sa_flags = SA_NOCLDWAIT
};
sigaction(SIGCHLD, &sigchld_action, NULL);
}
#endif