git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ded017
)
s3: Introduce winbindd_child_busy()
author
Volker Lendecke
<vl@samba.org>
Wed, 7 Apr 2010 15:44:18 +0000
(17:44 +0200)
committer
Volker Lendecke
<vl@samba.org>
Wed, 14 Apr 2010 14:39:56 +0000
(16:39 +0200)
source/winbindd/winbindd_dual.c
patch
|
blob
|
history
diff --git
a/source/winbindd/winbindd_dual.c
b/source/winbindd/winbindd_dual.c
index fe961629858c751e20a077906192a94ac492695c..74582888149a4d7e19aa964ed5349391606e4983 100644
(file)
--- 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 */
}