mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
fixup of join deadlock warnings.
git-svn-id: file:///svn/unbound/trunk@437 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
55630293b9
commit
a96e895bc9
2 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue