diff options
author | 1996-11-09 18:46:54 +0000 | |
---|---|---|
committer | 1996-11-09 18:46:54 +0000 | |
commit | bee607b257781323f04ddf786fc0fe3597e56361 (patch) | |
tree | b13e37e7bcd4e08cf102ee10a3bad8e349296bbc /sys/kern/tty.c | |
parent | ignore "*.depend". (diff) | |
download | wireguard-openbsd-bee607b257781323f04ddf786fc0fe3597e56361.tar.xz wireguard-openbsd-bee607b257781323f04ddf786fc0fe3597e56361.zip |
Use passed-in process, not curproc to determine if the process is in the
background
Diffstat (limited to 'sys/kern/tty.c')
-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) { |