mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-11 12:27:43 +02:00
fixup of join deadlock warnings.
git-svn-id: file:///svn/unbound/trunk@437 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user