From 2e9f1f93c8acf028fffeec3fc8bafd1a19b719b7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 28 Jan 2012 15:44:51 -0800 Subject: [PATCH] ITS#7142 fix slapadd exit on failure --- servers/slapd/slapadd.c | 2 ++ 1 file changed, 2 insertions(+) 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 ); } -- 2.39.5