r23448: Doh ! Don't call winbind_child_died() *before* the
authorJeremy Allison <jra@samba.org>
Tue, 12 Jun 2007 19:53:51 +0000 (19:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:17 +0000 (12:23 -0500)
kill call as that sets pid = 0 ! :-).
Jeremy.

source/nsswitch/winbindd_dual.c

index 1a9cabb2cc33afdcd68fe03149d625acb36eb398..2c2ef920466fa352045f76a5d3dc7f94341a2e2d 100644 (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)