From: Howard Chu Date: Fri, 13 Mar 2009 08:33:34 +0000 (+0000) Subject: Avoid shutdown problems X-Git-Tag: ACLCHECK_0~696 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6044e46ec7af21658829edde47c4c9c904093df3;p=openldap Avoid shutdown problems --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 8e9fae5a40..969e302417 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1944,6 +1944,9 @@ syncprov_op_mod( Operation *op, SlapReply *rs ) * Currently it's not an issue because there are * no dynamic config deletes... */ + if ( slapd_shutdown ) + return SLAPD_ABANDON; + if ( !ldap_pvt_thread_pool_pausecheck( &connection_pool )) ldap_pvt_thread_yield(); ldap_pvt_thread_mutex_lock( &mt->mt_mutex );