]> code.citadel.org Git - citadel.git/blobdiff - citadel/threads.c
* we moved to COPYING instead of copyright.txt due to the request of debian; these...
[citadel.git] / citadel / threads.c
index 2d8576e1d49e7b00dd262564a62065927b9bc656..489fa416dc9c000fdb31ae54b27ed991f4ac931f 100644 (file)
@@ -2,7 +2,7 @@
  * $Id: sysdep.c 5882 2007-12-13 19:46:05Z davew $
  *
  * Citadel "system dependent" stuff.
- * See copyright.txt for copyright information.
+ * See COPYING for copyright information.
  *
  * Here's where we have the Citadel thread implimentation
  *
@@ -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 */