From 6044e46ec7af21658829edde47c4c9c904093df3 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 13 Mar 2009 08:33:34 +0000 Subject: [PATCH] Avoid shutdown problems --- servers/slapd/overlays/syncprov.c | 3 +++ 1 file changed, 3 insertions(+) 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 ); -- 2.39.5