]> 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)
committerJule Anger <janger@samba.org>
Thu, 7 Nov 2024 13:39:23 +0000 (13:39 +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

(cherry picked from commit e4e3f05cd7d6fdc98a24f592a099f7d24136788d)

Autobuild-User(v4-20-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-20-test): Thu Nov  7 13:39:23 UTC 2024 on atb-devel-224

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

index 5f3239cec186169b17d5f49a8e08ed553db9ae2a..b8e1ceddecca7e01ddd298eaf8de85d44eaeae6e 100644 (file)
@@ -1790,6 +1790,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 a5e8c8b8df8bc2a8e5cd3c923f905956f04ffbaa..4dee9b046cfebcb86ddb374f63b522e71a628a45 100644 (file)
@@ -407,6 +407,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  */