LRN: Fix automake deps to allow -j* builds again
[oweals/gnunet.git] / src / util / scheduler.c
index 429adafa31457cb6e30f7a91b1b5df8ed59ee8d9..dd0ce6054915d6ac82fdc5dd81b28be6fbf8c246 100644 (file)
@@ -1,6 +1,6 @@
 /*
       This file is part of GNUnet
-      (C) 2009 Christian Grothoff (and other contributing authors)
+      (C) 2009, 2011 Christian Grothoff (and other contributing authors)
 
       GNUnet is free software; you can redistribute it and/or modify
       it under the terms of the GNU General Public License as published
@@ -786,9 +786,11 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls)
                                      task_cls,
                                      GNUNET_SCHEDULER_REASON_STARTUP);
 #if ENABLE_WINDOWS_WORKAROUNDS
+  active_task = (void*) (long) -1; /* force passing of sanity check */
   GNUNET_SCHEDULER_add_now_with_lifeness (GNUNET_NO,
                                          &GNUNET_OS_install_parent_control_handler,
-                                         NULL, GNUNET_SCHEDULER_REASON_STARTUP);
+                                         NULL);
+  active_task = NULL;
 #endif
   last_tr = 0;
   busy_wait_warning = 0;