]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/sysdep.c
Temporarily disable the indexer
[citadel.git] / citadel / server / sysdep.c
index ada01885ffaf769edecb79d86c5726d8e3118fec..cbe62879a06dfd278336acacbd60d22f3ce3aa68 100644 (file)
@@ -986,21 +986,17 @@ SKIP_SELECT:
 
                pthread_mutex_lock(&ThreadCountMutex);
                --active_workers;
-               if (    (active_workers + CtdlGetConfigInt("c_min_workers") < num_workers)
-                       && (num_workers > CtdlGetConfigInt("c_min_workers"))
-               ) {
-                       num_workers--;
-                       pthread_mutex_unlock(&ThreadCountMutex);
-                       return (NULL);
-               }
                pthread_mutex_unlock(&ThreadCountMutex);
        }
 
        // If control reaches this point, the server is shutting down
-       pthread_mutex_lock(&ThreadCountMutex);
-       --num_workers;
-       pthread_mutex_unlock(&ThreadCountMutex);
-       return(NULL);
+       while(1) {
+               sleep(1);               // wait to die
+       }
+       //pthread_mutex_lock(&ThreadCountMutex);
+       //--num_workers;
+       //pthread_mutex_unlock(&ThreadCountMutex);
+       //return(NULL);
 }