summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty.c4
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) {