aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2002-07-09 19:11:12 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2002-07-09 19:11:12 +0000
commit831ab44e67a31fbb1c40407024e7c5c0f5543355 (patch)
tree6073a145e3262beb89155469a3d8bfe878936be6 /usr.bin
parent56030358cb7237308b635018068919cc321e063b (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/su/su.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c
index 6348099c92c5..5e98031a935e 100644
--- a/usr.bin/su/su.c
+++ b/usr.bin/su/su.c
@@ -128,7 +128,7 @@ main(int argc, char *argv[])
uid_t ruid;
gid_t gid;
int asme, ch, asthem, fastlogin, prio, i, setwhat, retcode,
- statusp, child_pid, child_pgrp, ret_pid;
+ statusp, child_pid, ret_pid;
char *username, *cleanenv, *class, shellbuf[MAXPATHLEN];
const char *p, *user, *shell, *mytty, **nargv;
@@ -329,9 +329,7 @@ main(int argc, char *argv[])
default:
while ((ret_pid = waitpid(child_pid, &statusp, WUNTRACED)) != -1) {
if (WIFSTOPPED(statusp)) {
- child_pgrp = tcgetpgrp(1);
kill(getpid(), SIGSTOP);
- tcsetpgrp(1, child_pgrp);
kill(child_pid, SIGCONT);
statusp = 1;
continue;