mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 07:30:57 -05:00
ITS#6011 don't hang around during a shutdown...
This commit is contained in:
parent
7f375ae276
commit
f347798d48
1 changed files with 2 additions and 0 deletions
|
|
@ -1260,6 +1260,8 @@ do_syncrepl(
|
|||
|
||||
/* Don't get stuck here while a pause is initiated */
|
||||
while ( ldap_pvt_thread_mutex_trylock( &si->si_mutex )) {
|
||||
if ( slapd_shutdown )
|
||||
return NULL;
|
||||
if ( !ldap_pvt_thread_pool_pausecheck( &connection_pool ))
|
||||
ldap_pvt_thread_yield();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue