]> 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 1c833f0401af04687ddbfb05dd98e2a4021867f6..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"
@@ -43,8 +43,6 @@
 #include "msgbase.h"
 #include "journaling.h"
 
-
-
 /*
  * Terminate idle sessions.  This function pounds through the session table
  * comparing the current time to each session's time-of-last-command.  If an
@@ -169,6 +167,10 @@ void do_housekeeping(void) {
        /* First, do the "as often as needed" stuff... */
        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) {
                cdb_check_handles();                    /* suggested by Justin Case */