mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix select/yield
This commit is contained in:
parent
07287da277
commit
6a8cac7ac8
1 changed files with 8 additions and 1 deletions
|
|
@ -1334,7 +1334,14 @@ slapd_daemon_task(
|
|||
ldap_pvt_runqueue_persistent_backload( &syncrepl_rq );
|
||||
}
|
||||
|
||||
tvp = at ? &tv : NULL;
|
||||
if ( at
|
||||
#if defined(HAVE_YIELDING_SELECT) || defined(NO_THREADS)
|
||||
&& ( tv.tv_sec || tv.tv_usec )
|
||||
#endif
|
||||
)
|
||||
tvp = &tv;
|
||||
else
|
||||
tvp = NULL;
|
||||
|
||||
#ifdef LDAP_SYNCREPL
|
||||
ldap_pvt_thread_mutex_lock( &syncrepl_rq.rq_mutex );
|
||||
|
|
|
|||
Loading…
Reference in a new issue