From: Christian Grothoff Date: Thu, 1 Oct 2009 22:57:28 +0000 (+0000) Subject: add warning against busy waiting and mitigate X-Git-Tag: initial-import-from-subversion-38251~23433 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=05e64238be718731e65b790af6027250046eabd5;p=oweals%2Fgnunet.git add warning against busy waiting and mitigate --- diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 308257abe..731816e32 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c @@ -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) {