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
This commit is contained in:
Warren Dukes 2004-05-15 19:08:15 +00:00
parent 687016ea02
commit c34d372a4d
1 changed files with 1 additions and 2 deletions

View File

@ -359,7 +359,6 @@ int main(int argc, char * argv[]) {
initVolume();
initInterfaces();
close(STDIN_FILENO);
if(options.daemon) {
int pid;
@ -452,4 +451,4 @@ int main(int argc, char * argv[]) {
return EXIT_SUCCESS;
}
/* vim:set shiftwidth=4 tabstop=8 expandtab: */
/* vim:set shiftwidth=8 tabstop=8 expandtab: */