mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
more complete fix for typo
This commit is contained in:
parent
1b36197e73
commit
21eb2ca7bc
@ -6,13 +6,11 @@ boolean_t
|
||||
os_condition_waituntil(os_condition_t *c, os_mutex_t *m, os_time_t *t,
|
||||
boolean_t *timeout)
|
||||
{
|
||||
int result;
|
||||
struct timespec ts;
|
||||
|
||||
ts.tv_sec = t->seconds;
|
||||
ts.tv_nsec = t->nanoseconds;
|
||||
result = pthread_cond_timedwait(c, m, &ts);
|
||||
if (result == 0) {
|
||||
if (pthread_cond_timedwait(c, m, &ts) == 0) {
|
||||
*timeout = FALSE;
|
||||
return (TRUE);
|
||||
} else if (errno == ETIMEDOUT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user