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 652ddf5ce2.
This commit is contained in:
1 parent
c08b74c524
commit
8986e2da47
1 file changed
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user