]> code.citadel.org Git - citadel.git/blobdiff - citadel/housekeeping.c
* Removed all of the thread cancellation cruft that is no longer necessary
[citadel.git] / citadel / housekeeping.c
index fef2f694c70f92fafd84bc548ede104f74790411..72c1f4aa731e7ae6bc03cf7959435be160b9a9a1 100644 (file)
@@ -20,9 +20,6 @@
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
 #endif
-#ifdef HAVE_PTHREAD_H
-#include <pthread.h>
-#endif
 #include "tools.h"
 #include "citadel.h"
 #include "server.h"
@@ -134,11 +131,6 @@ void housekeeping_loop(void) {
                                check_sched_shutdown();
                        }
 
-                       /* Remove a context (session ending) */
-                       else if (!strcmp(cmd, "REMOVE_CONTEXT")) {
-                               RemoveContext( extract_int(house_cmd, 1) );
-                       }
-
                        /* Unknown */
                        else {
                                lprintf(7, "Unknown housekeeping command\n");
@@ -156,10 +148,12 @@ void housekeeping_loop(void) {
 void enter_housekeeping_cmd(char *cmd) {
        char cmdbuf[256];
 
+       lprintf(9, "enter_housekeeping_cmd(%s)\n", cmd);
        safestrncpy(cmdbuf, cmd, 256);
        begin_critical_section(S_HOUSEKEEPING);
        write(housepipe[1], cmdbuf, 256);
        end_critical_section(S_HOUSEKEEPING);
+       lprintf(9, "leaving enter_housekeeping_cmd()\n");
 }