Bugfix: Send child a SIGCONT, so it reacts to SIGTERM (no zombies \o/)
This commit is contained in:
parent
cdf56f16bf
commit
ff0522fe95
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue