34c34
< * $FreeBSD: head/sys/kern/tty_pty.c 53483 1999-11-21 02:54:54Z jkh $
---
> * $FreeBSD: head/sys/kern/tty_pty.c 57070 2000-02-09 03:32:11Z rwatson $
120a121
> struct prison *pt_prison;
172a174
> struct pt_ioctl *pti;
189a192
> pti = dev->si_drv1;
198c201
< } else if (tp->t_state & TS_XCLUDE && suser(p))
---
> } else if (tp->t_state & TS_XCLUDE && suser(p)) {
199a203,205
> } else if (pti->pt_prison != p->p_prison) {
> return (EBUSY);
> }
356a363
> pti->pt_prison = p->p_prison;
< * $FreeBSD: head/sys/kern/tty_pty.c 53483 1999-11-21 02:54:54Z jkh $
---
> * $FreeBSD: head/sys/kern/tty_pty.c 57070 2000-02-09 03:32:11Z rwatson $
120a121
> struct prison *pt_prison;
172a174
> struct pt_ioctl *pti;
189a192
> pti = dev->si_drv1;
198c201
< } else if (tp->t_state & TS_XCLUDE && suser(p))
---
> } else if (tp->t_state & TS_XCLUDE && suser(p)) {
199a203,205
> } else if (pti->pt_prison != p->p_prison) {
> return (EBUSY);
> }
356a363
> pti->pt_prison = p->p_prison;