Apparently we need to send SIGSTOP to the command as well as ourself

when we get SIGTSTP, the kernel doesn't automatically stop the process
for us.
This commit is contained in:
Todd C. Miller
2009-10-11 12:42:03 +00:00
parent 2cf1b81abf
commit 09a7bb78fe

View File

@@ -794,9 +794,8 @@ sigrelay(signo)
}
/* Relay signal back to parent for its tty. */
kill(parent, signo);
/* Suspend self, parent will continue us when it is time. */
/* XXX - want to be able to handle SIGSTOP too */
kill(getpid(), SIGSTOP);
/* Suspend self and command, parent will continue us when it is time. */
killpg(getpid(), SIGSTOP);
errno = serrno;
}