diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-05-15 12:47:39 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-05-15 12:47:39 +0000 |
| commit | 160c25d03131670d503ac8e85a07fb4db557315e (patch) | |
| tree | fef1368f4364e597119eb226c0ee08f627723276 /sys/kern/tty.c | |
| parent | 44318fb2f901205d65da1c2fe95440f1e443c877 (diff) | |
Notes
Diffstat (limited to 'sys/kern/tty.c')
| -rw-r--r-- | sys/kern/tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index dbf924871362..4c11ff56000b 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1818,7 +1818,6 @@ tty_generic_ioctl(struct tty *tp, u_long cmd, void *data, int fflag, tp->t_session = p->p_session; tp->t_session->s_ttyp = tp; tp->t_sessioncnt++; - sx_xunlock(&proctree_lock); /* Assign foreground process group. */ tp->t_pgrp = p->p_pgrp; @@ -1826,6 +1825,7 @@ tty_generic_ioctl(struct tty *tp, u_long cmd, void *data, int fflag, p->p_flag |= P_CONTROLT; PROC_UNLOCK(p); + sx_xunlock(&proctree_lock); return (0); } case TIOCSPGRP: { |
