From: Howard Chu Date: Wed, 11 Mar 2009 07:04:27 +0000 (+0000) Subject: ITS#6011 don't hang around during a shutdown... X-Git-Tag: ACLCHECK_0~707 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f347798d4858bbe96bb2210b1501115a74439945;p=openldap ITS#6011 don't hang around during a shutdown... --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 7ad5c813ab..ad38463a62 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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(); }