add warning against busy waiting and mitigate
authorChristian Grothoff <christian@grothoff.org>
Thu, 1 Oct 2009 22:57:28 +0000 (22:57 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 1 Oct 2009 22:57:28 +0000 (22:57 +0000)
src/util/scheduler.c

index 308257abeacb0e984a7557af0833c8d755efeb8e..731816e329c7f64c3598d38bd64916e335beb4b0 100644 (file)
@@ -530,6 +530,7 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *cls)
        {
          GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                      _("Looks like we're busy waiting...\n"));
+         sleep (1); /* mitigate */
        }
       if (ret == GNUNET_SYSERR)
         {