Skip to content
Snippets Groups Projects
Commit e958a4c7 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix up abandon merge. Hallvard will holler if I get this wrong. :-)

parent 951ca2bd
Branches
Tags
No related merge requests found
......@@ -38,22 +38,14 @@ shell_back_abandon(
break;
}
}
ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
}
ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
if ( pid == -1 ) {
Debug( LDAP_DEBUG_ARGS, "shell could not find op %d\n", msgid, 0, 0 );
return 0;
}
/* no abandon command defined - just kill the process handling it */
if ( si->si_abandon == NULL ) {
Debug( LDAP_DEBUG_ARGS, "shell killing pid %d\n",
(int) pid, 0, 0 );
kill( pid, SIGTERM );
return 0;
}
if ( forkandexec( si->si_abandon, &rfp, &wfp ) == -1 ) {
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment