summaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-30 16:41:11 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-30 16:41:11 +0000
commit84a7043d7141f3663b01ec9bb1c6265da5730614 (patch)
tree3c42200d680ff406a5cf652bdf7a3ad91de4750e /sys/kern/tty.c
parent5f0b61b40f3ba4e78dc68e1ebfa7f5f3e3a09b88 (diff)
Add missing KNOTE() calls after selwakeup() in ptcread() (to wake up writers
after the master side of the pty has finished reading) and in ttyflush(). ok tedu millert
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 1d78066931a..e71dd941f9f 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.81 2009/10/28 16:56:46 deraadt Exp $ */
+/* $OpenBSD: tty.c,v 1.82 2009/10/30 16:41:10 nicm Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -1246,6 +1246,7 @@ ttyflush(struct tty *tp, int rw)
FLUSHQ(&tp->t_outq);
wakeup((caddr_t)&tp->t_outq);
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
splx(s);
}