samba-bgqd: Fix samba-bgqd with "clustering=yes"/"include=registry"
authorVolker Lendecke <vl@samba.org>
Fri, 30 Jul 2021 09:43:08 +0000 (11:43 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 31 Jul 2021 16:58:41 +0000 (16:58 +0000)
commit7818513053aabda046645583fa5bb79a03e2b5ac
tree1987e7154e1104a128e056fb6452571d72de3c0b
parent2acad27686074029ac83c66b42bb37eea380f449
samba-bgqd: Fix samba-bgqd with "clustering=yes"/"include=registry"

With the above combination, some flavor of lp_load() already
initializes global_event_ctx, for which the closeall_except() later on
will happily close the epoll fd for. If we want to close all file
descriptors at startup, this must be the very first thing overall.

Can't really write a proper test for this with knownfail that is
removed with the fix, because if we have clustering+include=registry,
the whole clusteredmember environment does not even start up.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Jul 31 16:58:41 UTC 2021 on sn-devel-184
selftest/target/Samba3.pm
source3/printing/samba-bgqd.c