aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-07-15 12:41:18 +0000
committerEric Wong <normalperson@yhbt.net>2006-07-15 12:41:18 +0000
commit37bdf3f3d2dc1d750bfa0a371b9b16380d8767f4 (patch)
tree45d0e51e63d91e52089af9274b865c77005ab824 /src/main.c
parentf621d55e3fd7b3a6cc234d5d9632ed472fd88ff8 (diff)
downloadmpd-37bdf3f3d2dc1d750bfa0a371b9b16380d8767f4.tar.gz
mpd-37bdf3f3d2dc1d750bfa0a371b9b16380d8767f4.tar.xz
mpd-37bdf3f3d2dc1d750bfa0a371b9b16380d8767f4.zip
Avoid spewing messages to the console
Just setupLogOutput and redirect things to the logs before spawning the main process. We've already daemonized at this point, so we've already proven that we can fork, but we haven't done it yet. git-svn-id: https://svn.musicpd.org/mpd/trunk@4353 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index f0f636a5b..d70d16242 100644
--- a/src/main.c
+++ b/src/main.c
@@ -569,6 +569,7 @@ int main(int argc, char * argv[]) {
initAudioDriver();
initSigHandlers();
+ setupLogOutput(&options, out, err);
startMainProcess();
/* This is the main process which has
* been forked from the master process.
@@ -587,8 +588,6 @@ int main(int argc, char * argv[]) {
printMemorySavedByTagTracker();
printSavedMemoryFromFilenames();
- setupLogOutput(&options, out, err);
-
/* wait for the master process to get ready so we can start
* playing if readPlaylistState thinks we should*/
while (COMMAND_MASTER_READY != handlePendingSignals())