fixup of join deadlock warnings.

git-svn-id: file:///svn/unbound/trunk@437 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-07-19 11:32:47 +00:00
parent 55630293b9
commit a96e895bc9
2 changed files with 3 additions and 0 deletions

View 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.

View 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;