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

This commit is contained in:
Kurt Zeilenga 2002-06-05 16:53:48 +00:00
parent 951ca2bd68
commit e958a4c780

View File

@ -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;
}