aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-11 02:34:26 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-11 02:34:26 +0000
commit4cfd77be95658167467163bf5c87fd5957ee71f1 (patch)
tree9d26ea345e60dfe03472df5fa84670dfeef7a8e9 /src/directory.c
parent5798500b8531ce788f0321b0545b10563e3821fa (diff)
downloadmpd-4cfd77be95658167467163bf5c87fd5957ee71f1.tar.gz
mpd-4cfd77be95658167467163bf5c87fd5957ee71f1.tar.xz
mpd-4cfd77be95658167467163bf5c87fd5957ee71f1.zip
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
Diffstat (limited to 'src/directory.c')
-rw-r--r--src/directory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/directory.c b/src/directory.c
index 16f2c0fa0..7ecc5bd62 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -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) {