aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/su
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2006-01-02 08:51:21 +0000
committerBrian Somers <brian@FreeBSD.org>2006-01-02 08:51:21 +0000
commitd43e192e7d9ef9516bef3c5b9f15eab12d817a1e (patch)
treeabe55a71288e25092ae97f6c4f002b843c60f271 /usr.bin/su
parent0cf21b4f583541fca56c6d5e93f5323aabd87bc5 (diff)
downloadsrc-d43e192e7d9ef9516bef3c5b9f15eab12d817a1e.tar.gz
src-d43e192e7d9ef9516bef3c5b9f15eab12d817a1e.zip
Notes
Diffstat (limited to 'usr.bin/su')
-rw-r--r--usr.bin/su/su.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c
index f6e0c86c387b..621c351ce5a9 100644
--- a/usr.bin/su/su.c
+++ b/usr.bin/su/su.c
@@ -392,22 +392,15 @@ main(int argc, char *argv[])
sa.sa_handler = SIG_IGN;
sigaction(SIGTTOU, &sa, NULL);
close(fds[0]);
- setpgid(child_pid, child_pid);
- tcsetpgrp(STDERR_FILENO, child_pid);
close(fds[1]);
sigaction(SIGPIPE, &sa_pipe, NULL);
while ((pid = waitpid(child_pid, &statusp, WUNTRACED)) != -1) {
if (WIFSTOPPED(statusp)) {
- kill(getpid(), SIGSTOP);
- child_pgrp = getpgid(child_pid);
- tcsetpgrp(1, child_pgrp);
- kill(child_pid, SIGCONT);
statusp = 1;
continue;
}
break;
}
- tcsetpgrp(STDERR_FILENO, getpgrp());
if (pid == -1)
err(1, "waitpid");
PAM_END();