winbind: Implement forall_children()
authorVolker Lendecke <vl@samba.org>
Mon, 26 Feb 2018 11:55:31 +0000 (12:55 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 1 Mar 2018 08:53:45 +0000 (09:53 +0100)
commit4f76a1deae60f7725f7e4307549de3d097a59236
tree12dcd3d5ff082eec15c0cbfbf9f84ba810015ca3
parent6a65ea900d48347fbdec253cc5a6dadd613bbada
winbind: Implement forall_children()

Step 0 in removing winbindd_children as a variable: We have access to
all children via our domain list and the two explicit children. There's
no need to separately maintain a list of winbind children. Maintaining
child->pid != 0 is sufficient to make sure we only walk active children.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13309

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/winbindd_dual.c