From cda47593c46bae82731a3ace441426d8628dd815 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 1 Nov 2006 03:37:25 +0000 Subject: poll errors should be POLLERR, not some random E value from alexandre ratchov. ok claudio --- sys/dev/wscons/wsmux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/wscons/wsmux.c') diff --git a/sys/dev/wscons/wsmux.c b/sys/dev/wscons/wsmux.c index a8913e7ea48..8ba12358b71 100644 --- a/sys/dev/wscons/wsmux.c +++ b/sys/dev/wscons/wsmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmux.c,v 1.18 2006/08/05 19:08:41 miod Exp $ */ +/* $OpenBSD: wsmux.c,v 1.19 2006/11/01 03:37:24 tedu Exp $ */ /* $NetBSD: wsmux.c,v 1.37 2005/04/30 03:47:12 augustss Exp $ */ /* @@ -61,6 +61,7 @@ #include #include #include +#include #include #include @@ -547,7 +548,7 @@ wsmuxpoll(dev_t dev, int events, struct proc *p) #ifdef DIAGNOSTIC printf("wsmuxpoll: not open\n"); #endif - return (EACCES); + return (POLLERR); } return (wsevent_poll(sc->sc_base.me_evp, events, p)); -- cgit v1.2.3