aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2011-08-25 15:51:54 +0000
committerAttilio Rao <attilio@FreeBSD.org>2011-08-25 15:51:54 +0000
commit6aba400a7055ed2427c6aa297774fb91f5d8db79 (patch)
treebb41d1180cbc15eb092da87c3197b83cc6d4191f /sys/kern/tty.c
parent745e9ba27db9bbf6b4c449507740bc9acc4dabee (diff)
downloadsrc-6aba400a7055ed2427c6aa297774fb91f5d8db79.tar.gz
src-6aba400a7055ed2427c6aa297774fb91f5d8db79.zip
Notes
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 77c02dd57dd7..ce49f972b2fc 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1022,6 +1022,8 @@ tty_dealloc(void *arg)
MPASS(ttyinq_getsize(&tp->t_inq) == 0);
MPASS(ttyoutq_getsize(&tp->t_outq) == 0);
+ seldrain(&tp->t_inpoll);
+ seldrain(&tp->t_outpoll);
knlist_destroy(&tp->t_inpoll.si_note);
knlist_destroy(&tp->t_outpoll.si_note);