mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 06:35:57 -05:00
handle SIGCLD to catch zombies
This commit is contained in:
parent
e2bf750033
commit
afa041790b
@ -575,6 +575,7 @@ int start_signal_handler(void) {
|
||||
if((sigemptyset(&set) == -1) ||
|
||||
(sigaddset(&set,SIGINT) == -1) ||
|
||||
(sigaddset(&set,SIGHUP) == -1) ||
|
||||
(sigaddset(&set,SIGCLD) == -1) ||
|
||||
(sigprocmask(SIG_BLOCK, &set, NULL) == -1)) {
|
||||
DPRINTF(ERR_LOG,"Error setting signal set\n");
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user