summaryrefslogtreecommitdiffstats
path: root/sys/dev/midi.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2006-11-01 03:37:23 +0000
committertedu <tedu@openbsd.org>2006-11-01 03:37:23 +0000
commit9c6e7f5debd276ac8a04c5ecc7b5e43ea4cce077 (patch)
treeca68b9f0ef2b0dea75b7ad29630bbfb6fd2c49de /sys/dev/midi.c
parentAdjust existing ikedel tests for aggressive mode support (we now (diff)
downloadwireguard-openbsd-9c6e7f5debd276ac8a04c5ecc7b5e43ea4cce077.tar.xz
wireguard-openbsd-9c6e7f5debd276ac8a04c5ecc7b5e43ea4cce077.zip
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();