From 05e64238be718731e65b790af6027250046eabd5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 1 Oct 2009 22:57:28 +0000 Subject: [PATCH] add warning against busy waiting and mitigate --- src/util/scheduler.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.25.1