fix #24
This commit is contained in:
parent
744d33a345
commit
da7df2f2c2
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue