Commit c34d372a authored by Warren Dukes's avatar Warren Dukes

don't close STDIN_FILENO, not suppose to dup2 a closed fd

git-svn-id: https://svn.musicpd.org/mpd/trunk@1023 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 687016ea
...@@ -359,7 +359,6 @@ int main(int argc, char * argv[]) { ...@@ -359,7 +359,6 @@ int main(int argc, char * argv[]) {
initVolume(); initVolume();
initInterfaces(); initInterfaces();
close(STDIN_FILENO);
if(options.daemon) { if(options.daemon) {
int pid; int pid;
...@@ -452,4 +451,4 @@ int main(int argc, char * argv[]) { ...@@ -452,4 +451,4 @@ int main(int argc, char * argv[]) {
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
/* vim:set shiftwidth=4 tabstop=8 expandtab: */ /* vim:set shiftwidth=8 tabstop=8 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment