summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 43c7f68..d6ffdd7 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1473,7 +1473,7 @@ tty_generic_ioctl(struct tty *tp, u_long cmd, void *data, struct thread *td)
return (0);
}
- if (!SESS_LEADER(p) || p->p_session->s_ttyvp != NULL ||
+ if (p->p_session->s_ttyvp != NULL ||
(tp->t_session != NULL && tp->t_session->s_ttyvp != NULL)) {
/*
* There is already a relation between a TTY and
OpenPOWER on IntegriCloud