From f347798d4858bbe96bb2210b1501115a74439945 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 11 Mar 2009 07:04:27 +0000 Subject: [PATCH] ITS#6011 don't hang around during a shutdown... --- servers/slapd/syncrepl.c | 2 ++ 1 file changed, 2 insertions(+) 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(); } -- 2.39.5