]> code.citadel.org Git - citadel.git/blobdiff - citadel/housekeeping.c
Begun implimentation of a really good thread control interface.
[citadel.git] / citadel / housekeeping.c
index 99f0d792fa764e6ba488d1b003aa33885b127b75..cbc8a1c42c5c70506e2f79bad4b2d75c93d45fff 100644 (file)
@@ -30,7 +30,7 @@
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
 #endif
-#include "tools.h"
+#include <libcitadel.h>
 #include "citadel.h"
 #include "server.h"
 #include "serv_extensions.h"
 #include "msgbase.h"
 #include "journaling.h"
 
-#ifdef HAVE_LIBSIEVE
-# include "serv_sieve.h"
-#endif
-
 /*
  * Terminate idle sessions.  This function pounds through the session table
  * comparing the current time to each session's time-of-last-command.  If an
@@ -172,6 +168,8 @@ void do_housekeeping(void) {
        JournalRunQueue();
 
        PerformSessionHooks(EVT_HOUSE); /* perform as needed housekeeping */
+       
+       ctdl_internal_thread_gc(0);
 
        /* Then, do the "once per minute" stuff... */
        if (do_perminute_housekeeping_now) {