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:
parent
48240740e7
commit
e880a878bc
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user