when resuming command, send SIGCONT to its pgrp not just pid

This commit is contained in:
Todd C. Miller
2009-10-22 13:52:59 +00:00
parent 777c82a4d4
commit 03e0e4c747

View File

@@ -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))