diff options
author | Attilio Rao <attilio@FreeBSD.org> | 2011-08-25 15:51:54 +0000 |
---|---|---|
committer | Attilio Rao <attilio@FreeBSD.org> | 2011-08-25 15:51:54 +0000 |
commit | 6aba400a7055ed2427c6aa297774fb91f5d8db79 (patch) | |
tree | bb41d1180cbc15eb092da87c3197b83cc6d4191f /sys/kern/tty.c | |
parent | 745e9ba27db9bbf6b4c449507740bc9acc4dabee (diff) | |
download | src-6aba400a7055ed2427c6aa297774fb91f5d8db79.tar.gz src-6aba400a7055ed2427c6aa297774fb91f5d8db79.zip |
Notes
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 2 |
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); |