From: Howard Chu Date: Sat, 28 Jan 2012 23:44:51 +0000 (-0800) Subject: ITS#7142 fix slapadd exit on failure X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2e9f1f93c8acf028fffeec3fc8bafd1a19b719b7;p=openldap ITS#7142 fix slapadd exit on failure --- diff --git a/servers/slapd/slapadd.c b/servers/slapd/slapadd.c index 1ce3b1fc2f..ec0eb011d2 100644 --- a/servers/slapd/slapadd.c +++ b/servers/slapd/slapadd.c @@ -448,9 +448,11 @@ slapadd( int argc, char **argv ) } if ( slap_tool_thread_max > 1 ) { + ldap_pvt_thread_mutex_lock( &add_mutex ); add_stop = 1; trec.ready = 0; ldap_pvt_thread_cond_signal( &add_cond ); + ldap_pvt_thread_mutex_unlock( &add_mutex ); ldap_pvt_thread_join( thr, NULL ); }