From 160dbe080c50e88ed113d0b194151068706b57f4 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Thu, 20 Jul 2006 22:47:34 +0000 Subject: Rolling back change to when we redirect to logs. Turns out it silenced fatal audio_output errors. git-svn-id: https://svn.musicpd.org/mpd/trunk@4415 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index 1250f6757..95e32c2d5 100644 --- a/src/main.c +++ b/src/main.c @@ -543,22 +543,18 @@ int main(int argc, char *argv[]) changeToUser(); openLogFiles(&options, &out, &err); - /* Redirect only stdout, so fatal errors are spit out to console */ - setupLogOutput(&options, out, stderr); initPlayerData(); daemonize(&options); - /* Now that we're daemonized, redirect errors to the error log */ - setupLogOutput(&options, out, err); - initInputPlugins(); initPaths(); initAudioConfig(); initAudioDriver(); initSigHandlers(); + setupLogOutput(&options, out, err); startMainProcess(); /* This is the main process which has * been forked from the master process. -- cgit v1.2.3