From 1b68d00b3bbf98f5677aa3bca383080920ab13e2 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Mon, 4 Jun 2007 17:41:18 +0000 Subject: 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 --- src/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 4c537eb1..ddfe508b 100644 --- a/src/main.c +++ b/src/main.c @@ -429,7 +429,6 @@ int main(int argc, char *argv[]) initAudioDriver(); initVolume(); initInterfaces(); - initZeroconf(); initReplayGainState(); initNormalization(); initInputStream(); @@ -438,10 +437,10 @@ int main(int argc, char *argv[]) setup_log_output(options.stdOutput); - - initSigHandlers(); + initZeroconf(); + openVolumeDevice(); read_state_file(); -- cgit v1.2.3