s3: Introduce winbindd_child_busy()
authorVolker Lendecke <vl@samba.org>
Wed, 7 Apr 2010 15:44:18 +0000 (17:44 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 14 Apr 2010 14:39:56 +0000 (16:39 +0200)
source/winbindd/winbindd_dual.c

index fe961629858c751e20a077906192a94ac492695c..74582888149a4d7e19aa964ed5349391606e4983 100644 (file)
@@ -286,6 +286,11 @@ static void async_reply_recv(void *private_data, bool success)
        state->continuation(state->private_data, True);
 }
 
+static bool winbindd_child_busy(const struct winbindd_child *child)
+{
+       return (child->event.flags != 0);
+}
+
 static bool fork_domain_child(struct winbindd_child *child);
 
 static void schedule_async_request(struct winbindd_child *child)
@@ -296,7 +301,7 @@ static void schedule_async_request(struct winbindd_child *child)
                return;
        }
 
-       if (child->event.flags != 0) {
+       if (winbindd_child_busy(child)) {
                return;         /* Busy */
        }