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();
|
initAudioConfig();
|
||||||
initAudioDriver();
|
initAudioDriver();
|
||||||
initPlaylist();
|
initPlaylist();
|
||||||
|
openDB(&options, argv[0]);
|
||||||
|
|
||||||
daemonize(&options);
|
daemonize(&options);
|
||||||
|
|
||||||
@ -565,8 +566,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
initPermissions();
|
initPermissions();
|
||||||
|
|
||||||
openDB(&options, argv[0]);
|
|
||||||
|
|
||||||
initCommands();
|
initCommands();
|
||||||
initVolume();
|
initVolume();
|
||||||
initInterfaces();
|
initInterfaces();
|
||||||
|
Loading…
Reference in New Issue
Block a user