#include <sys/wait.h>
#include <string.h>
#include <limits.h>
+#include <libcitadel.h>
#include "citadel.h"
#include "server.h"
#include "citserver.h"
#include "msgbase.h"
#include "user_ops.h"
#include "control.h"
-#include "serv_network.h"
-#include "tools.h"
+#include "serv_network.h" /* Needed for defenition of UseTable */
#include "ctdl_module.h"
cdb_rewind(CDB_USETABLE);
while(cdbut = cdb_next_item(CDB_USETABLE), cdbut != NULL) {
+ /*
+ * TODODRW: change this to create a new function time_t cdb_get_timestamp( struct cdbdata *)
+ * this will release this file from the serv_network.h
+ * Maybe it could be a macro that extracts and casts the reult
+ */
memcpy(&ut, cdbut->ptr,
((cdbut->len > sizeof(struct UseTable)) ?
sizeof(struct UseTable) : cdbut->len));
CTDL_MODULE_INIT(expire)
{
- CtdlRegisterSessionHook(purge_databases, EVT_TIMER);
- CtdlRegisterProtoHook(cmd_fsck, "FSCK", "Check message ref counts");
-
+ if (!threading)
+ {
+ CtdlRegisterSessionHook(purge_databases, EVT_TIMER);
+ CtdlRegisterProtoHook(cmd_fsck, "FSCK", "Check message ref counts");
+ }
+
/* return our Subversion id for the Log */
return "$Id$";
}