This commit is contained in:
Luke Smith 2020-06-02 15:45:47 -04:00
parent 744d33a345
commit da7df2f2c2
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

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