From f3184ac14f03da17bde002ccff8abf43076b34bc Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 31 Oct 2009 06:40:18 +0000 Subject: 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. --- sys/dev/pci/cz.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci/cz.c') diff --git a/sys/dev/pci/cz.c b/sys/dev/pci/cz.c index 6a057aa6c32..91b151f68fb 100644 --- a/sys/dev/pci/cz.c +++ b/sys/dev/pci/cz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cz.c,v 1.11 2009/01/11 16:54:59 blambert Exp $ */ +/* $OpenBSD: cz.c,v 1.12 2009/10/31 06:40:17 deraadt Exp $ */ /* $NetBSD: cz.c,v 1.15 2001/01/20 19:10:36 thorpej Exp $ */ /*- @@ -1486,6 +1486,7 @@ czttystart(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; } -- cgit v1.2.3