Commit e880a878 authored by J. Alexander Treuman's avatar J. Alexander Treuman

Open the db file before daemonizing/creating the master process, so we can…

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
parent 48240740
...@@ -553,6 +553,7 @@ int main(int argc, char *argv[]) ...@@ -553,6 +553,7 @@ int main(int argc, char *argv[])
initAudioConfig(); initAudioConfig();
initAudioDriver(); initAudioDriver();
initPlaylist(); initPlaylist();
openDB(&options, argv[0]);
daemonize(&options); daemonize(&options);
...@@ -565,8 +566,6 @@ int main(int argc, char *argv[]) ...@@ -565,8 +566,6 @@ int main(int argc, char *argv[])
initPermissions(); initPermissions();
openDB(&options, argv[0]);
initCommands(); initCommands();
initVolume(); initVolume();
initInterfaces(); initInterfaces();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment