updating_db in status and some ideas for the TODO that i've already forgotten
git-svn-id: https://svn.musicpd.org/mpd/trunk@669 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -88,6 +88,11 @@ void deleteEmptyDirectoriesInDirectory(Directory * directory);
|
||||
|
||||
int addSubDirectoryToDirectory(Directory * directory, char * shortname, char * name);
|
||||
|
||||
int isUpdatingDB() {
|
||||
if(directory_updatePid>0) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void directory_sigChldHandler(int pid, int status) {
|
||||
if(directory_updatePid==pid) {
|
||||
if(WIFSIGNALED(status) && WTERMSIG(status)!=SIGTERM) {
|
||||
|
||||
Reference in New Issue
Block a user