diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2006-11-01 03:37:25 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2006-11-01 03:37:25 +0000 |
commit | cda47593c46bae82731a3ace441426d8628dd815 (patch) | |
tree | aa28da856e618323be6d4d92b35e137b2e7735c6 /sys/dev/wscons/wsdisplay.c | |
parent | 4215128eaf88d9fc8ae8feca7b72fb5ad954c065 (diff) |
poll errors should be POLLERR, not some random E value
from alexandre ratchov. ok claudio
Diffstat (limited to 'sys/dev/wscons/wsdisplay.c')
-rw-r--r-- | sys/dev/wscons/wsdisplay.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c index 7c2cdb9d757..5112dbc5880 100644 --- a/sys/dev/wscons/wsdisplay.c +++ b/sys/dev/wscons/wsdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsdisplay.c,v 1.69 2006/08/05 16:59:57 miod Exp $ */ +/* $OpenBSD: wsdisplay.c,v 1.70 2006/11/01 03:37:24 tedu Exp $ */ /* $NetBSD: wsdisplay.c,v 1.82 2005/02/27 00:27:52 perry Exp $ */ /* @@ -52,6 +52,7 @@ #include <sys/fcntl.h> #include <sys/vnode.h> #include <sys/timeout.h> +#include <sys/poll.h> #include <dev/wscons/wsconsio.h> #include <dev/wscons/wsdisplayvar.h> @@ -1343,10 +1344,10 @@ wsdisplaypoll(dev_t dev, int events, struct proc *p) return (0); if ((scr = sc->sc_scr[WSDISPLAYSCREEN(dev)]) == NULL) - return (ENXIO); + return (POLLERR); if (!WSSCREEN_HAS_TTY(scr)) - return (ENODEV); + return (POLLERR); return (ttpoll(dev, events, p)); } |