diff options
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty_pty.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 874f0ba..a01851d 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -182,11 +182,10 @@ ptsopen(dev, flag, devtype, td) tp->t_lflag = TTYDEF_LFLAG; tp->t_cflag = TTYDEF_CFLAG; tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; - } else if (tp->t_state & TS_XCLUDE && suser(td)) { + } else if (tp->t_state & TS_XCLUDE && suser(td)) return (EBUSY); - } else if (pti->pt_prison != td->td_ucred->cr_prison) { + else if (pti->pt_prison != td->td_ucred->cr_prison) return (EBUSY); - } if (tp->t_oproc) /* Ctrlr still around. */ (void)(*linesw[tp->t_line].l_modem)(tp, 1); while ((tp->t_state & TS_CARR_ON) == 0) { |