mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Fix up abandon merge. Hallvard will holler if I get this wrong. :-)
This commit is contained in:
parent
951ca2bd68
commit
e958a4c780
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user