]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for #1457: fix thread setname for thread start of
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 19 Jun 2026 06:37:23 +0000 (08:37 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 19 Jun 2026 06:37:23 +0000 (08:37 +0200)
  dnstap, and fast_reload.

daemon/remote.c
dnstap/dtstream.c
doc/Changelog

index df122010859f0adbe462c5287ffd708877cc9cb5..720f0daab4f1898a65f88f92d40e4a10df18d363 100644 (file)
@@ -6909,7 +6909,7 @@ static void* fast_reload_thread_main(void* arg)
 #endif
                log_thread_set(&fast_reload_thread->threadnum);
 
-       ub_thread_setname(fast_reload_thread->tid, name);
+       ub_thread_setname(ub_thread_self(), name);
        (void)name; /* When setname is not defined, ignore the name variable. */
 
        verbose(VERB_ALGO, "start fast reload thread");
index 09bdfd66279407ac9a0212f83f01092160e10285..eee768ee222e7c7be3342baf49ef25665537795f 100644 (file)
@@ -2144,7 +2144,7 @@ static void* dnstap_io(void* arg)
 #endif
                log_thread_set(&dtio->threadnum);
 
-       ub_thread_setname(dtio->tid, name);
+       ub_thread_setname(ub_thread_self(), name);
 
        /* setup */
        verbose(VERB_ALGO, "start dnstap io thread");
index b02d4003fd1c668cfe367e9409142f853f4159b0..bf2d808120079a4afc4abcf2e96508a158240e03 100644 (file)
@@ -1,3 +1,7 @@
+19 June 2026: Wouter
+       - Fix for #1457: fix thread setname for thread start of
+         dnstap, and fast_reload.
+
 17 June 2026: Wouter
        - Fix that after fast_reload the disown of the auth zone
          transfer task cleans the chunk list. Also fix the