]> git.sur5r.net Git - openldap/commitdiff
ITS#6011 don't hang around during a shutdown...
authorHoward Chu <hyc@openldap.org>
Wed, 11 Mar 2009 07:04:27 +0000 (07:04 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 11 Mar 2009 07:04:27 +0000 (07:04 +0000)
servers/slapd/syncrepl.c

index 7ad5c813ab76ea8a10c92108faf63184673ac47d..ad38463a6261cc7cf2d6d5d52a334c01d664d92a 100644 (file)
@@ -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();
        }