summaryrefslogtreecommitdiff
path: root/sys/arch/sh/dev/scif.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-10-31 06:40:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-10-31 06:40:18 +0000
commitf3184ac14f03da17bde002ccff8abf43076b34bc (patch)
tree095aba03ec9c46097cdee71ffbe0a3cf6726ded1 /sys/arch/sh/dev/scif.c
parent84fb3053dd046225edb7868a8dd17410070e5b8c (diff)
Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()
calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
Diffstat (limited to 'sys/arch/sh/dev/scif.c')
-rw-r--r--sys/arch/sh/dev/scif.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sh/dev/scif.c b/sys/arch/sh/dev/scif.c
index 04aaf0607c1..c2037d934d4 100644
--- a/sys/arch/sh/dev/scif.c
+++ b/sys/arch/sh/dev/scif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scif.c,v 1.7 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: scif.c,v 1.8 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: scif.c,v 1.47 2006/07/23 22:06:06 ad Exp $ */
/*-
@@ -491,6 +491,7 @@ scifstart(struct tty *tp)
wakeup(&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}