From: Jeremy Allison Date: Tue, 12 Jun 2007 19:53:51 +0000 (+0000) Subject: r23448: Doh ! Don't call winbind_child_died() *before* the X-Git-Tag: samba-4.0.0alpha6~801^2~5646 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5aadea741fd541f43f2ca535ec40d6f82b5d37a3;p=thirdparty%2Fsamba.git r23448: Doh ! Don't call winbind_child_died() *before* the kill call as that sets pid = 0 ! :-). Jeremy. (This used to be commit bcfce39094ef30a1d1ae4dba5a90738e2678bcbf) --- diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c index 1a9cabb2cc3..2c2ef920466 100644 --- a/source3/nsswitch/winbindd_dual.c +++ b/source3/nsswitch/winbindd_dual.c @@ -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)