1
0
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:
Jeremy Allison 2007-06-12 19:53:51 +00:00 committed by Gerald (Jerry) Carter
parent ade91e78cb
commit bcfce39094

View File

@ -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)