Send child a SIGCONT, so it reacts to SIGTERM (no zombies \o/)
This commit is contained in:
parent
f539f76e5b
commit
29aaced900
|
@ -157,6 +157,7 @@ void start_child(char *command) {
|
|||
*/
|
||||
void kill_child() {
|
||||
if (child_pid != 0) {
|
||||
kill(child_pid, SIGCONT);
|
||||
kill(child_pid, SIGTERM);
|
||||
}
|
||||
cleanup();
|
||||
|
|
Loading…
Reference in New Issue