aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-07-20 22:47:34 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-07-20 22:47:34 +0000
commit160dbe080c50e88ed113d0b194151068706b57f4 (patch)
treea46209e71859c40e924a089b895c1b8515ea293c /src
parent0623d6bee08b181c11700bb0313ef9af478e10d1 (diff)
downloadmpd-160dbe080c50e88ed113d0b194151068706b57f4.tar.gz
mpd-160dbe080c50e88ed113d0b194151068706b57f4.tar.xz
mpd-160dbe080c50e88ed113d0b194151068706b57f4.zip
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
Diffstat (limited to '')
-rw-r--r--src/main.c6
1 files changed, 1 insertions, 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.