Commit 1b68d00b authored by J. Alexander Treuman's avatar J. Alexander Treuman

Don't initialize zeroconf until after we've daemonized and log output has

been redirected. This prevents zeroconf from blocking daemonization, and makes sure any errors get sent to the logs and not stdout. git-svn-id: https://svn.musicpd.org/mpd/trunk@6477 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 652c2fc8
...@@ -429,7 +429,6 @@ int main(int argc, char *argv[]) ...@@ -429,7 +429,6 @@ int main(int argc, char *argv[])
initAudioDriver(); initAudioDriver();
initVolume(); initVolume();
initInterfaces(); initInterfaces();
initZeroconf();
initReplayGainState(); initReplayGainState();
initNormalization(); initNormalization();
initInputStream(); initInputStream();
...@@ -438,10 +437,10 @@ int main(int argc, char *argv[]) ...@@ -438,10 +437,10 @@ int main(int argc, char *argv[])
setup_log_output(options.stdOutput); setup_log_output(options.stdOutput);
initSigHandlers(); initSigHandlers();
initZeroconf();
openVolumeDevice(); openVolumeDevice();
read_state_file(); read_state_file();
......
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