diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-31 06:40:18 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-31 06:40:18 +0000 |
commit | f3184ac14f03da17bde002ccff8abf43076b34bc (patch) | |
tree | 095aba03ec9c46097cdee71ffbe0a3cf6726ded1 /sys/dev/ic | |
parent | 84fb3053dd046225edb7868a8dd17410070e5b8c (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/dev/ic')
-rw-r--r-- | sys/dev/ic/com.c | 3 | ||||
-rw-r--r-- | sys/dev/ic/cy.c | 3 | ||||
-rw-r--r-- | sys/dev/ic/z8530tty.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index 7c1532b3014..a247d866226 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com.c,v 1.132 2009/10/13 19:33:16 pirofti Exp $ */ +/* $OpenBSD: com.c,v 1.133 2009/10/31 06:40:16 deraadt Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -902,6 +902,7 @@ comstart(struct tty *tp) if (tp->t_outq.c_cc == 0) goto stopped; selwakeup(&tp->t_wsel); + KNOTE(&tp->t_wsel.si_note, 0); } SET(tp->t_state, TS_BUSY); diff --git a/sys/dev/ic/cy.c b/sys/dev/ic/cy.c index cda20beff29..500019dc850 100644 --- a/sys/dev/ic/cy.c +++ b/sys/dev/ic/cy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cy.c,v 1.25 2005/11/21 18:16:39 millert Exp $ */ +/* $OpenBSD: cy.c,v 1.26 2009/10/31 06:40:17 deraadt Exp $ */ /* * Copyright (c) 1996 Timo Rossi. * All rights reserved. @@ -629,6 +629,7 @@ cystart(tp) } selwakeup(&tp->t_wsel); + KNOTE(&tp->t_wsel.si_note, 0); if (tp->t_outq.c_cc == 0) goto out; diff --git a/sys/dev/ic/z8530tty.c b/sys/dev/ic/z8530tty.c index 10ddebc1996..9a516f1e43c 100644 --- a/sys/dev/ic/z8530tty.c +++ b/sys/dev/ic/z8530tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: z8530tty.c,v 1.17 2008/01/18 21:36:43 kettenis Exp $ */ +/* $OpenBSD: z8530tty.c,v 1.18 2009/10/31 06:40:17 deraadt Exp $ */ /* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */ /* @@ -606,6 +606,7 @@ zsstart(tp) wakeup((caddr_t)&tp->t_outq); } selwakeup(&tp->t_wsel); + KNOTE(&tp->t_wsel.si_note, 0); } nch = ndqb(&tp->t_outq, 0); /* XXX */ |