#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
+#include "ctdl_module.h"
+
/*
* Terminate idle sessions. This function pounds through the session table
void check_sched_shutdown(void) {
if ((ScheduledShutdown == 1) && (ContextList == NULL)) {
lprintf(CTDL_NOTICE, "Scheduled shutdown initiating.\n");
- time_to_die = 1;
- master_cleanup(0);
+ CtdlThreadStopAll();
}
}