tun* interfaces are now automatically destroyed on last close when
authorguenther <guenther@openbsd.org>
Wed, 4 Aug 2010 05:57:21 +0000 (05:57 +0000)
committerguenther <guenther@openbsd.org>
Wed, 4 Aug 2010 05:57:21 +0000 (05:57 +0000)
originally created by opening /dev/tun*

regress/sys/kern/kqueue/Makefile

index 2ca4360..4a14ae5 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.13 2004/12/29 04:39:17 david Exp $
+#      $OpenBSD: Makefile,v 1.14 2010/08/04 05:57:21 guenther Exp $
 
 PROG=  kqueue-test
 CFLAGS+=-Wall
@@ -20,8 +20,6 @@ kq-tun: ${PROG}
        @EVENT_SHOW_METHOD=yes EVENT_NOPOLL=yes EVENT_NOSELECT=yes ${SUDO} ./${PROG} -t
        @EVENT_SHOW_METHOD=yes EVENT_NOPOLL=yes EVENT_NOKQUEUE=yes ${SUDO} ./${PROG} -t
        @EVENT_SHOW_METHOD=yes EVENT_NOSELECT=yes EVENT_NOKQUEUE=yes ${SUDO} ./${PROG} -t
-       @-${SUDO} ifconfig tun98 destroy
-       @-${SUDO} ifconfig tun99 destroy
        @-${SUDO} rm -f /dev/tun98 /dev/tun99
 kq-pty: ${PROG}
        ${SUDO} ./${PROG} -T