summaryrefslogtreecommitdiff
path: root/sys/net
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/net
parent4215128eaf88d9fc8ae8feca7b72fb5ad954c065 (diff)
poll errors should be POLLERR, not some random E value
from alexandre ratchov. ok claudio
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_tun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index a11b0e8ada0..ee1094196db 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.79 2006/03/25 22:41:48 djm Exp $ */
+/* $OpenBSD: if_tun.c,v 1.80 2006/11/01 03:37:24 tedu Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -947,7 +947,7 @@ tunpoll(dev_t dev, int events, struct proc *p)
struct mbuf *m;
if ((tp = tun_lookup(minor(dev))) == NULL)
- return (ENXIO);
+ return (POLLERR);
ifp = &tp->tun_if;
revents = 0;