]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fixup of join deadlock warnings.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 19 Jul 2007 11:32:47 +0000 (11:32 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 19 Jul 2007 11:32:47 +0000 (11:32 +0000)
git-svn-id: file:///svn/unbound/trunk@437 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
testcode/checklocks.c

index 7e7fb9433d21c3dc8dedeec47c1fdd6d5488a378..9e8b64a03babe24774b692a25afff11172b5e536 100644 (file)
@@ -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.
index f8e8969015db73687a4a857b472955738cd59757..eccc72d761605d95b46aa2fa94e248add28e8842 100644 (file)
@@ -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;