Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
06f9b6c3
Commit
06f9b6c3
authored
Nov 05, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main: don't close all file descriptors on startup
Removed closeAllFDs(). The caller is responsible for closing all file handles.
parent
5d6e96e9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
main.c
src/main.c
+0
-11
No files found.
src/main.c
View file @
06f9b6c3
...
@@ -224,15 +224,6 @@ static void parseOptions(int argc, char **argv, Options * options)
...
@@ -224,15 +224,6 @@ static void parseOptions(int argc, char **argv, Options * options)
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
static
void
closeAllFDs
(
void
)
{
int
i
;
int
fds
=
getdtablesize
();
for
(
i
=
3
;
i
<
fds
;
i
++
)
close
(
i
);
}
static
void
changeToUser
(
void
)
static
void
changeToUser
(
void
)
{
{
ConfigParam
*
param
=
getConfigParam
(
CONF_USER
);
ConfigParam
*
param
=
getConfigParam
(
CONF_USER
);
...
@@ -391,8 +382,6 @@ int main(int argc, char *argv[])
...
@@ -391,8 +382,6 @@ int main(int argc, char *argv[])
Options
options
;
Options
options
;
clock_t
start
;
clock_t
start
;
closeAllFDs
();
initConf
();
initConf
();
parseOptions
(
argc
,
argv
,
&
options
);
parseOptions
(
argc
,
argv
,
&
options
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment