]> code.citadel.org Git - citadel.git/blobdiff - citadel/threads.c
Added code to provide a preliminary single user mode.
[citadel.git] / citadel / threads.c
index 2d8576e1d49e7b00dd262564a62065927b9bc656..63e6ba0724b72aa7ae708b1da24eab3f10c93aa8 100644 (file)
@@ -1101,6 +1101,10 @@ void ctdl_thread_internal_check_scheduled(void)
        CtdlThreadNode *this_thread, *that_thread;
        time_t now;
        
+       /* Don't start scheduled threads if the system wants single user mode */
+       if (CtdlWantSingleUser())
+               return;
+       
        if (try_critical_section(S_SCHEDULE_LIST))
                return; /* If this list is locked we wait till the next chance */