diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-31 14:13:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-31 14:13:58 +0000 |
commit | 420e5d23dfbecd953bb18aa97462024ddac6954b (patch) | |
tree | 84a44b13489feb0d0504b5b65327f1f408eb02b6 /sys/dev | |
parent | 30d17a6cf69a4bede9a0490f859102008334a0bb (diff) |
KNOTE() after selwakeup(); ok miod
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/wscons/wsdisplay.c | 3 | ||||
-rw-r--r-- | sys/dev/wscons/wseventvar.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c index 7754f197c96..af46c2e27a0 100644 --- a/sys/dev/wscons/wsdisplay.c +++ b/sys/dev/wscons/wsdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsdisplay.c,v 1.95 2009/10/31 12:00:08 fgsch Exp $ */ +/* $OpenBSD: wsdisplay.c,v 1.96 2009/10/31 14:13:57 deraadt Exp $ */ /* $NetBSD: wsdisplay.c,v 1.82 2005/02/27 00:27:52 perry Exp $ */ /* @@ -1487,6 +1487,7 @@ low: wakeup((caddr_t)&tp->t_outq); } selwakeup(&tp->t_wsel); + KNOTE(&tp->t_wsel.si_note, 0); } splx(s); } diff --git a/sys/dev/wscons/wseventvar.h b/sys/dev/wscons/wseventvar.h index e854f2f5d1f..f507a19d7b1 100644 --- a/sys/dev/wscons/wseventvar.h +++ b/sys/dev/wscons/wseventvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wseventvar.h,v 1.4 2003/06/02 23:28:04 millert Exp $ */ +/* $OpenBSD: wseventvar.h,v 1.5 2009/10/31 14:13:57 deraadt Exp $ */ /* $NetBSD: wseventvar.h,v 1.1 1998/03/22 14:24:03 drochner Exp $ */ /* @@ -94,6 +94,7 @@ struct wseventvar { #define WSEVENT_WAKEUP(ev) { \ selwakeup(&(ev)->sel); \ + KNOTE(&(ev)->sel.si_note, 0); \ if ((ev)->wanted) { \ (ev)->wanted = 0; \ wakeup((caddr_t)(ev)); \ |