summaryrefslogtreecommitdiff
path: root/sys/dev/midi.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2006-11-01 03:37:25 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2006-11-01 03:37:25 +0000
commitcda47593c46bae82731a3ace441426d8628dd815 (patch)
treeaa28da856e618323be6d4d92b35e137b2e7735c6 /sys/dev/midi.c
parent4215128eaf88d9fc8ae8feca7b72fb5ad954c065 (diff)
poll errors should be POLLERR, not some random E value
from alexandre ratchov. ok claudio
Diffstat (limited to 'sys/dev/midi.c')
-rw-r--r--sys/dev/midi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/midi.c b/sys/dev/midi.c
index 4f1cb931a9c..35dc9e8bb27 100644
--- a/sys/dev/midi.c
+++ b/sys/dev/midi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midi.c,v 1.14 2006/04/16 03:24:27 jsg Exp $ */
+/* $OpenBSD: midi.c,v 1.15 2006/11/01 03:37:23 tedu Exp $ */
/*
* Copyright (c) 2003, 2004 Alexandre Ratchov
@@ -350,7 +350,7 @@ midipoll(dev_t dev, int events, struct proc *p)
int s, revents;
if (sc->isdying)
- return EIO;
+ return POLLERR;
revents = 0;
s = splaudio();