aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-07-24 19:21:27 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-07-24 19:21:27 +0000
commite880a878bc691176059bf9d674c22c8fb049c6e8 (patch)
treecaf02d417706f82c069707e34ad769a76cb0a0d9 /src/main.c
parent48240740e7aaaa58df65d570afa6ccbac8d590b2 (diff)
downloadmpd-e880a878bc691176059bf9d674c22c8fb049c6e8.tar.gz
mpd-e880a878bc691176059bf9d674c22c8fb049c6e8.tar.xz
mpd-e880a878bc691176059bf9d674c22c8fb049c6e8.zip
Open the db file before daemonizing/creating the master process, so we can handle failures gracefully
git-svn-id: https://svn.musicpd.org/mpd/trunk@4454 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 77591a35f..7dcc5240a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -553,6 +553,7 @@ int main(int argc, char *argv[])
initAudioConfig();
initAudioDriver();
initPlaylist();
+ openDB(&options, argv[0]);
daemonize(&options);
@@ -565,8 +566,6 @@ int main(int argc, char *argv[])
initPermissions();
- openDB(&options, argv[0]);
-
initCommands();
initVolume();
initInterfaces();