Bugfix: Send child a SIGCONT, so it reacts to SIGTERM (no zombies \o/)

This commit is contained in:
Axel Wagner 2010-12-26 14:45:31 +01:00
parent cdf56f16bf
commit ff0522fe95
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ void start_child(char *command) {
*/ */
void kill_child() { void kill_child() {
if (child_pid != 0) { if (child_pid != 0) {
kill(child_pid, SIGCONT);
kill(child_pid, SIGTERM); kill(child_pid, SIGTERM);
} }
cleanup(); cleanup();