projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87e0952
)
Set the CLOEXEC flag on the umbilical socket.
author
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 21 May 2015 09:06:38 +0000
(11:06 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 21 May 2015 09:06:38 +0000
(11:06 +0200)
src/tincd.c
patch
|
blob
|
history
diff --git
a/src/tincd.c
b/src/tincd.c
index b62c8c1903a7cf30002b2a1a0ba57efd1f9ce2fa..14a0c1120d4d0c81519c5a8e20b14944bd733da2 100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-370,6
+370,10
@@
int main(int argc, char **argv) {
umbilical = atoi(umbstr);
if(fcntl(umbilical, F_GETFL) < 0)
umbilical = 0;
+#ifdef FD_CLOEXEC
+ if(umbilical)
+ fcntl(umbilical, F_SETFD, FD_CLOEXEC);
+#endif
}
#endif