#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"
-
-
/*
* Terminate idle sessions. This function pounds through the session table
* comparing the current time to each session's time-of-last-command. If an
/* 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 */