Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/usermode/usermode don't need O_NONBLOCK for tap



details:   https://anonhg.NetBSD.org/src/rev/d29e3c79103c
branches:  trunk
changeset: 772249:d29e3c79103c
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Dec 26 14:50:27 2011 +0000

description:
don't need O_NONBLOCK for tap

diffstat:

 sys/arch/usermode/usermode/thunk.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4b91a6691582 -r d29e3c79103c sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c        Mon Dec 26 13:09:03 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c        Mon Dec 26 14:50:27 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.52 2011/12/26 12:39:20 jmcneill Exp $ */
+/* $NetBSD: thunk.c,v 1.53 2011/12/26 14:50:27 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __NetBSD__
-__RCSID("$NetBSD: thunk.c,v 1.52 2011/12/26 12:39:20 jmcneill Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.53 2011/12/26 14:50:27 jmcneill Exp $");
 #endif
 
 #include <sys/types.h>
@@ -714,7 +714,7 @@
        int fd, error, enable;
 
        /* open tap device */
-       fd = open(device, O_RDWR|O_NONBLOCK);
+       fd = open(device, O_RDWR);
        if (fd == -1)
                return -1;
 



Home | Main Index | Thread Index | Old Index