diff --git a/script.c b/script.c index a2a0656ed..ce15c17e9 100644 --- a/script.c +++ b/script.c @@ -646,7 +646,7 @@ script_child(path, argv, rbac_enabled) /* Stop parent, self and then resume child when we come back */ kill(parent, WSTOPSIG(status)); kill(getpid(), SIGSTOP); - kill(child, SIGCONT); + killpg(child, SIGCONT); } else { /* Child died, set exit code accordingly. */ if (WIFEXITED(status))