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/dev/midi.c | |
parent | 1d4e7e7880e37aca01dc2032184cf8ab80944efd (diff) |
KNOTE() after selwakeup()
ok ratchov
Diffstat (limited to 'sys/dev/midi.c')
-rw-r--r-- | sys/dev/midi.c | 4 |
1 files changed, 3 insertions, 1 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); } |