]> code.citadel.org Git - citadel.git/blobdiff - citadel/housekeeping.c
* msgbase.c: when a summary mode message list is requested, and the room
[citadel.git] / citadel / housekeeping.c
index da86e19c3776b9adb5b78753c6691338b9f45520..7eee008ae05911837a9d1f092f69392e5172d498 100644 (file)
@@ -5,10 +5,6 @@
  *
  */
 
-#ifdef DLL_EXPORT
-#define IN_LIBCIT
-#endif
-
 #include "sysdep.h"
 #include <stdlib.h>
 #include <unistd.h>
@@ -82,6 +78,7 @@ void check_sched_shutdown(void) {
        if ((ScheduledShutdown == 1) && (ContextList == NULL)) {
                lprintf(CTDL_NOTICE, "Scheduled shutdown initiating.\n");
                time_to_die = 1;
+               master_cleanup(0);
        }
 }
 
@@ -125,7 +122,7 @@ void check_ref_counts(void) {
                        flbuf.f_flags = flbuf.f_flags & ~QR_INUSE;
                }
                lputfloor(&flbuf, a);
-               lprintf(9, "Floor %d: %d rooms\n", a, new_refcounts[a]);
+               lprintf(CTDL_DEBUG, "Floor %d: %d rooms\n", a, new_refcounts[a]);
        }
 }