projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of black:tinc
[oweals/tinc.git]
/
src
/
linux
/
device.c
diff --git
a/src/linux/device.c
b/src/linux/device.c
index 93d4b414ebf31f16de6ce482ed1127543bc1ccd3..cbf215298dd635e8ff1d2cb869c6d93d114e4862 100644
(file)
--- a/
src/linux/device.c
+++ b/
src/linux/device.c
@@
-73,6
+73,10
@@
static bool setup_device(void) {
return false;
}
+#ifdef FD_CLOEXEC
+ fcntl(device_fd, F_SETFD, FD_CLOEXEC);
+#endif
+
#ifdef HAVE_LINUX_IF_TUN_H
/* Ok now check if this is an old ethertap or a new tun/tap thingie */