mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix select/yield
This commit is contained in:
parent
07287da277
commit
6a8cac7ac8
@ -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 New Issue
Block a user