From a96e895bc94936c6bf18f7001a7b4be884c341fc Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 19 Jul 2007 11:32:47 +0000 Subject: [PATCH] fixup of join deadlock warnings. git-svn-id: file:///svn/unbound/trunk@437 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 2 ++ testcode/checklocks.c | 1 + 2 files changed, 3 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 7e7fb9433..9e8b64a03 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,7 @@ 19 July 2007: Wouter - shuffle NS selection when getting nameserver target addresses. + - fixup of deadlock warnings, yield cpu in checklock code so that + freebsd scheduler selects correct process to run. 18 July 2007: Wouter - do not query addresses, 127.0.0.1, and ::1 by default. diff --git a/testcode/checklocks.c b/testcode/checklocks.c index f8e896901..eccc72d76 100644 --- a/testcode/checklocks.c +++ b/testcode/checklocks.c @@ -516,6 +516,7 @@ static int timed_spinlock(void* arg, struct timespec* to) #ifndef S_SPLINT_S if(time(NULL) >= to->tv_sec) return ETIMEDOUT; + usleep(1000); /* in 1/1000000s of a second */ #endif } return err; -- 2.47.2