mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
r23448: Doh ! Don't call winbind_child_died() *before* the
kill call as that sets pid = 0 ! :-). Jeremy.
This commit is contained in:
parent
ade91e78cb
commit
bcfce39094
@ -178,19 +178,18 @@ static void async_request_timeout_handler(struct event_context *ctx,
|
||||
|
||||
async_reply_recv(private_data, False);
|
||||
|
||||
/*
|
||||
* Close the socket to the child. Should cause the
|
||||
* child to exit.
|
||||
*/
|
||||
|
||||
DEBUG(0,("async_request_timeout_handler: child pid %u is not responding. "
|
||||
"Closing connection to it.\n",
|
||||
state->child->pid ));
|
||||
|
||||
winbind_child_died(state->child->pid);
|
||||
|
||||
/* Send kill signal to child. */
|
||||
kill(state->child->pid, SIGTERM);
|
||||
|
||||
/*
|
||||
* Close the socket to the child.
|
||||
*/
|
||||
|
||||
winbind_child_died(state->child->pid);
|
||||
}
|
||||
|
||||
static void async_request_sent(void *private_data_data, BOOL success)
|
||||
|
Loading…
x
Reference in New Issue
Block a user