From e880a878bc691176059bf9d674c22c8fb049c6e8 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Mon, 24 Jul 2006 19:21:27 +0000 Subject: 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 --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3