diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-30 18:12:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-30 18:12:32 +0000 |
commit | cb346982136c45ba43992abe8a6bbbf4d90a630c (patch) | |
tree | c8ef1f4a4804616977d098d85712dbc0182e36d6 /sys | |
parent | 1d4e7e7880e37aca01dc2032184cf8ab80944efd (diff) |
KNOTE() after selwakeup()
ok ratchov
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/midi.c | 4 | ||||
-rw-r--r-- | sys/dev/sequencer.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/midi.c b/sys/dev/midi.c index e21bedf3c47..d9be511e886 100644 --- a/sys/dev/midi.c +++ b/sys/dev/midi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: midi.c,v 1.18 2009/08/17 10:27:42 ratchov Exp $ */ +/* $OpenBSD: midi.c,v 1.19 2009/10/30 18:12:30 deraadt Exp $ */ /* * Copyright (c) 2003, 2004 Alexandre Ratchov @@ -106,6 +106,7 @@ midi_iintr(void *addr, int data) wakeup(&sc->rchan); } selwakeup(&sc->rsel); + KNOTE(&sc->rsel.si_note, 0); if (sc->async) psignal(sc->async, SIGIO); } @@ -206,6 +207,7 @@ midi_out_stop(struct midi_softc *sc) wakeup(&sc->wchan); } selwakeup(&sc->wsel); + KNOTE(&sc->wsel.si_note, 0); if (sc->async) psignal(sc->async, SIGIO); } diff --git a/sys/dev/sequencer.c b/sys/dev/sequencer.c index 5b56f71d049..82d06c56a72 100644 --- a/sys/dev/sequencer.c +++ b/sys/dev/sequencer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sequencer.c,v 1.16 2008/06/26 05:42:14 ray Exp $ */ +/* $OpenBSD: sequencer.c,v 1.17 2009/10/30 18:12:31 deraadt Exp $ */ /* $NetBSD: sequencer.c,v 1.13 1998/11/25 22:17:07 augustss Exp $ */ /* @@ -266,6 +266,7 @@ seq_timeout(void *addr) if (SEQ_QLEN(&sc->outq) < sc->lowat) { seq_wakeup(&sc->wchan); selwakeup(&sc->wsel); + KNOTE(&sc->wsel.si_note, 0); if (sc->async) psignal(sc->async, SIGIO); } @@ -323,6 +324,7 @@ seq_input_event(struct sequencer_softc *sc, seq_event_rec *cmd) SEQ_QPUT(q, *cmd); seq_wakeup(&sc->rchan); selwakeup(&sc->rsel); + KNOTE(&sc->rsel.si_note, 0); if (sc->async) psignal(sc->async, SIGIO); return (0); |