Commit 2e9f1f93 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#7142 fix slapadd exit on failure

parent d7933e2e
......@@ -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 );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment