diff options
| author | 2009-10-31 06:40:14 +0000 | |
|---|---|---|
| committer | 2009-10-31 06:40:14 +0000 | |
| commit | ade004edddcdab33faee7c7b5833d2bf917e71c0 (patch) | |
| tree | ceb3b05d41e8166040fd547fb2bc9003e1c8d18b /sys/dev/usb/uhid.c | |
| parent | If the nmea(4) or endrun(4) timing disciplines are selected ignore status (diff) | |
| download | wireguard-openbsd-ade004edddcdab33faee7c7b5833d2bf917e71c0.tar.xz wireguard-openbsd-ade004edddcdab33faee7c7b5833d2bf917e71c0.zip | |
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/usb/uhid.c')
| -rw-r--r-- | sys/dev/usb/uhid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c index f9af66a7437..76e0dda1246 100644 --- a/sys/dev/usb/uhid.c +++ b/sys/dev/usb/uhid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhid.c,v 1.44 2009/10/13 19:33:19 pirofti Exp $ */ +/* $OpenBSD: uhid.c,v 1.45 2009/10/31 06:40:17 deraadt Exp $ */ /* $NetBSD: uhid.c,v 1.57 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -234,6 +234,7 @@ uhid_intr(struct uhidev *addr, void *data, u_int len) wakeup(&sc->sc_q); } selwakeup(&sc->sc_rsel); + KNOTE(&sc->sc_rsel.si_note, 0); if (sc->sc_async != NULL) { DPRINTFN(3, ("uhid_intr: sending SIGIO %p\n", sc->sc_async)); psignal(sc->sc_async, SIGIO); |
