summaryrefslogtreecommitdiffstats
path: root/src/tuntap.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-30 02:56:02 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-30 02:56:02 +0200
commit4f082c7df3998cdc2cdf9845a62d886d05257cb8 (patch)
treed1aba5a8ad41db7954ac41583be2eb09e76e5492 /src/tuntap.c
parent36f9d70182c4c2f2e617192ae34abd6c44549a78 (diff)
downloadfastd-4f082c7df3998cdc2cdf9845a62d886d05257cb8.tar
fastd-4f082c7df3998cdc2cdf9845a62d886d05257cb8.zip
Remove now unneeded FD_CLOEXEC flag config
Diffstat (limited to 'src/tuntap.c')
-rw-r--r--src/tuntap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tuntap.c b/src/tuntap.c
index d9fd353..d30a392 100644
--- a/src/tuntap.c
+++ b/src/tuntap.c
@@ -60,7 +60,7 @@ void fastd_tuntap_open(void) {
pr_debug("initializing tun/tap device...");
- if ((ctx.tunfd = open("/dev/net/tun", O_RDWR|O_CLOEXEC|O_NONBLOCK)) < 0)
+ if ((ctx.tunfd = open("/dev/net/tun", O_RDWR|O_NONBLOCK)) < 0)
exit_errno("could not open tun/tap device file");
if (conf.ifname)
@@ -184,7 +184,7 @@ void fastd_tuntap_open(void) {
strncat(ifname, type, IFNAMSIZ-1);
}
- if ((ctx.tunfd = open(ifname, O_RDWR|O_CLOEXEC|O_NONBLOCK)) < 0)
+ if ((ctx.tunfd = open(ifname, O_RDWR|O_NONBLOCK)) < 0)
exit_errno("could not open tun/tap device file");
if (!(ctx.ifname = fdevname_r(ctx.tunfd, malloc(IFNAMSIZ), IFNAMSIZ)))
@@ -254,7 +254,7 @@ void fastd_tuntap_open(void) {
pr_debug("initializing tun device...");
- if ((ctx.tunfd = open(ifname, O_RDWR|O_CLOEXEC|O_NONBLOCK)) < 0)
+ if ((ctx.tunfd = open(ifname, O_RDWR|O_NONBLOCK)) < 0)
exit_errno("could not open tun device file");
ctx.ifname = strndup(conf.ifname, IFNAMSIZ-1);