]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/result.c
Import slapd.conf mode change (with typo correction) from -devel.
[openldap] / servers / slapd / result.c
index dd3613327b2112df51a277c874c5dc24cfe7265a..04490d3b7274205cc968d2c98d6a76745b74de6d 100644 (file)
@@ -116,6 +116,10 @@ send_ldap_result2(
                pthread_kill( listener_tid, LDAP_SIGUSR1 );
 
                pthread_cond_wait( &conn->c_wcv, &active_threads_mutex );
+
+               if( active_threads < 1 ) {
+                       pthread_cond_signal(&active_threads_cond);
+               }
                pthread_mutex_unlock( &active_threads_mutex );
 
                pthread_yield();
@@ -346,6 +350,10 @@ send_search_entry(
                conn->c_writewaiter = 1;
                pthread_kill( listener_tid, LDAP_SIGUSR1 );
                pthread_cond_wait( &conn->c_wcv, &active_threads_mutex );
+
+               if( active_threads < 1 ) {
+                       pthread_cond_signal(&active_threads_cond);
+               }
                pthread_mutex_unlock( &active_threads_mutex );
 
                pthread_yield();