diff options
author | Max Kellermann <max@duempel.org> | 2008-11-05 18:21:36 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-05 18:21:36 +0100 |
commit | 06f9b6c379db39fc7676df05d40b20c833b63632 (patch) | |
tree | 2c1d3a2902a070e05bdeb4b7eecaca320f09a7c5 /src/main.c | |
parent | 5d6e96e986d54f4c2437b74a1ec12e92c399c24e (diff) | |
download | mpd-06f9b6c379db39fc7676df05d40b20c833b63632.tar.gz mpd-06f9b6c379db39fc7676df05d40b20c833b63632.tar.xz mpd-06f9b6c379db39fc7676df05d40b20c833b63632.zip |
main: don't close all file descriptors on startup
Removed closeAllFDs(). The caller is responsible for closing all file
handles.
Diffstat (limited to 'src/main.c')
-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); |