From: Volker Lendecke Date: Mon, 26 Feb 2018 12:48:24 +0000 (+0100) Subject: winbind: Remove the "winbindd_children" global X-Git-Tag: talloc-2.1.12~336 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=33f5f5c4610f1a249c2dc88848e4262e2f343c94;p=thirdparty%2Fsamba.git winbind: Remove the "winbindd_children" global BUG: https://bugzilla.samba.org/show_bug.cgi?id=13309 Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/source3/winbindd/winbindd.h b/source3/winbindd/winbindd.h index 081722f6a90..6aa57f2e704 100644 --- a/source3/winbindd/winbindd.h +++ b/source3/winbindd/winbindd.h @@ -115,8 +115,6 @@ struct winbindd_child_dispatch_table { }; struct winbindd_child { - struct winbindd_child *next, *prev; - pid_t pid; struct winbindd_domain *domain; char *logfilename; diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c index 2b02fdfd7fe..30d3604bc94 100644 --- a/source3/winbindd/winbindd_dual.c +++ b/source3/winbindd/winbindd_dual.c @@ -46,8 +46,6 @@ extern bool override_logfile; -static struct winbindd_child *winbindd_children = NULL; - static void forall_domain_children(bool (*fn)(struct winbindd_child *c, void *private_data), void *private_data) @@ -363,7 +361,6 @@ static void wb_child_request_cleanup(struct tevent_req *req, */ close(state->child->sock); state->child->sock = -1; - DLIST_REMOVE(winbindd_children, state->child); } static struct winbindd_child *choose_domain_child(struct winbindd_domain *domain) @@ -800,9 +797,6 @@ void winbind_child_died(pid_t pid) return; } - /* This will be re-added in fork_domain_child() */ - - DLIST_REMOVE(winbindd_children, state.child); state.child->pid = 0; if (state.child->sock != -1) { @@ -1636,8 +1630,6 @@ static bool fork_domain_child(struct winbindd_child *child) return false; } - child->next = child->prev = NULL; - DLIST_ADD(winbindd_children, child); child->sock = fdpair[1]; return True; } diff --git a/source3/winbindd/winbindd_ndr.c b/source3/winbindd/winbindd_ndr.c index 383de4e8116..74a03d0bc33 100644 --- a/source3/winbindd/winbindd_ndr.c +++ b/source3/winbindd/winbindd_ndr.c @@ -36,8 +36,6 @@ void ndr_print_winbindd_child(struct ndr_print *ndr, { ndr_print_struct(ndr, name, "winbindd_child"); ndr->depth++; - ndr_print_ptr(ndr, "next", r->next); - ndr_print_ptr(ndr, "prev", r->prev); ndr_print_uint32(ndr, "pid", (uint32_t)r->pid); #if 0 ndr_print_winbindd_domain(ndr, "domain", r->domain);