diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-11-09 18:46:55 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-11-09 18:46:55 +0000 |
commit | fe30aa3bf9aafda9b46d6d6e46f0254733897f46 (patch) | |
tree | fb113a04b53c01c2227dfa166e09eb55e4324a1a /sys | |
parent | f2a942a850034aea758192c18464d08c63cea14c (diff) |
Use passed-in process, not curproc to determine if the process is in the
background
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index bfd8e35bd18..bca0d5eb398 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.16 1996/11/06 08:37:39 deraadt Exp $ */ +/* $OpenBSD: tty.c,v 1.17 1996/11/09 18:46:54 tholo Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -669,7 +669,7 @@ ttioctl(tp, cmd, data, flag, p) case TIOCSETP: case TIOCSLTC: #endif - while (isbackground(curproc, tp) && + while (isbackground(p, tp) && p->p_pgrp->pg_jobc && (p->p_flag & P_PPWAIT) == 0 && (p->p_sigignore & sigmask(SIGTTOU)) == 0 && (p->p_sigmask & sigmask(SIGTTOU)) == 0) { |