]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbindd: call process_set_title() for locator child
authorStefan Metzmacher <metze@samba.org>
Wed, 16 Oct 2024 07:45:21 +0000 (07:45 +0000)
committerStefan Metzmacher <metze@samba.org>
Thu, 31 Oct 2024 14:02:39 +0000 (14:02 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15749

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Oct 31 14:02:39 UTC 2024 on atb-devel-224

source3/winbindd/winbindd_dual.c
source3/winbindd/winbindd_locator.c
source3/winbindd/winbindd_proto.h

index 7582c0606e46843f2eb9034140d9c72f77ceebeb..614727aceb9ba314e38915e7d7e3b66b03c6d39e 100644 (file)
@@ -1788,6 +1788,8 @@ static bool fork_domain_child(struct winbindd_child *child)
                process_set_title("wb[%s]", "domain child [%s]", child_domain->name);
        } else if (is_idmap_child(child)) {
                process_set_title("wb-idmap", "idmap child");
+       } else if (is_locator_child(child)) {
+               process_set_title("wb-locator", "locator child");
        }
 
        /* Handle online/offline messages. */
index c915bf280c48f3ab9d35040bd3af40cfbd979467..277a68bbbd8fca8456fdb754419806094da78ef5 100644 (file)
@@ -34,6 +34,15 @@ struct winbindd_child *locator_child(void)
        return static_locator_child;
 }
 
+bool is_locator_child(const struct winbindd_child *child)
+{
+       if (child == static_locator_child) {
+               return true;
+       }
+
+       return false;
+}
+
 struct dcerpc_binding_handle *locator_child_handle(void)
 {
        return static_locator_child->binding_handle;
index acfbc0543fa34e9d609d4cc4dc525523783d4593..5b90a7a731f05934cc0d065fab6598f5aee36dcf 100644 (file)
@@ -414,6 +414,7 @@ bool lp_scan_idmap_domains(bool (*fn)(const char *domname,
 
 NTSTATUS init_locator_child(TALLOC_CTX *mem_ctx);
 struct winbindd_child *locator_child(void);
+bool is_locator_child(const struct winbindd_child *child);
 struct dcerpc_binding_handle *locator_child_handle(void);
 
 /* The following definitions come from winbindd/winbindd_misc.c  */