aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
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.