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
This commit is contained in:
J. Alexander Treuman 2006-07-24 19:21:27 +00:00
parent 48240740e7
commit e880a878bc

View File

@ -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();