aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-07-11 14:40:56 +0200
committerMartin Willi <martin@revosec.ch>2014-08-25 09:47:46 +0200
commit8986e2da47ec6e5a57483a1034d3332f8fdd2533 (patch)
tree82dbf906bd333113a49e9eeeaaeff7fbd0c1e4ea
parentc08b74c52465a142143affaf4241c4497ba2e425 (diff)
downloadstrongswan-8986e2da47ec6e5a57483a1034d3332f8fdd2533.tar.bz2
strongswan-8986e2da47ec6e5a57483a1034d3332f8fdd2533.tar.xz
starter: Do not close all file descriptors after fork()
As we use libstrongswan and expect that it still works after the fork, we can't just closefrom() all file descriptors. Watcher, for example, uses a pipe to notify FDSET changes, which must be kept open. Reverts 652ddf5ce2fad08f6569096dd56a821500cc5ba4.
-rw-r--r--src/starter/starter.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/starter/starter.c b/src/starter/starter.c
index ef5780843..71f33ae91 100644
--- a/src/starter/starter.c
+++ b/src/starter/starter.c
@@ -612,7 +612,6 @@ int main (int argc, char **argv)
int fnull;
close_log();
- closefrom(3);
fnull = open("/dev/null", O_RDWR);
if (fnull >= 0)