summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_dual.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c
index 1a9cabb2cc..2c2ef92046 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)