forked from solene/iblock
change to avoid zombies
This commit is contained in:
parent
0265627230
commit
ba85c1dc9b
2
main.c
2
main.c
|
@ -46,7 +46,7 @@ static void runcmd(const char* cmd, const char** arg_list)
|
||||||
syslog(LOG_DAEMON, "execv error");
|
syslog(LOG_DAEMON, "execv error");
|
||||||
err(1,"execv");
|
err(1,"execv");
|
||||||
} else { /* parent */
|
} else { /* parent */
|
||||||
waitpid(pid, NULL, WNOHANG);
|
waitpid(pid, NULL, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue