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:
parent
687016ea02
commit
c34d372a4d
|
@ -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: */
|
||||
|
|
Loading…
Reference in New Issue