From 0233f1972d33d8f25a833f4741ac88f313c7b6c6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 7 Apr 2010 17:44:18 +0200 Subject: [PATCH] s3: Introduce winbindd_child_busy() --- source/winbindd/winbindd_dual.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c index fe96162985..7458288814 100644 --- a/source/winbindd/winbindd_dual.c +++ b/source/winbindd/winbindd_dual.c @@ -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 */ } -- 2.34.1