diff options
-rw-r--r-- | src/main.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/main.c b/src/main.c index 325254b62..79b17cda5 100644 --- a/src/main.c +++ b/src/main.c @@ -224,15 +224,6 @@ static void parseOptions(int argc, char **argv, Options * options) exit(EXIT_FAILURE); } -static void closeAllFDs(void) -{ - int i; - int fds = getdtablesize(); - - for (i = 3; i < fds; i++) - close(i); -} - static void changeToUser(void) { ConfigParam *param = getConfigParam(CONF_USER); @@ -391,8 +382,6 @@ int main(int argc, char *argv[]) Options options; clock_t start; - closeAllFDs(); - initConf(); parseOptions(argc, argv, &options); |