From: GNU Libc Maintainers Date: Thu, 17 Jul 2025 11:21:32 +0000 (+0200) Subject: git-pthread_sigmask_nothread X-Git-Tag: archive/raspbian/2.41-10+rpi1^2~57 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=db85da4e282b7b73a7f30c4cc1c6fa28e6a12858;p=glibc.git git-pthread_sigmask_nothread Upstream 2.42 has a much more involved cleanup fix which in the end boils down to this. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-pthread_sigmask_nothread.diff --- diff --git a/sysdeps/mach/hurd/htl/pt-sigstate.c b/sysdeps/mach/hurd/htl/pt-sigstate.c index a50179351..18981c482 100644 --- a/sysdeps/mach/hurd/htl/pt-sigstate.c +++ b/sysdeps/mach/hurd/htl/pt-sigstate.c @@ -36,7 +36,10 @@ __pthread_sigstate (struct __pthread *thread, int how, if (set != NULL) new = *set; - ss = _hurd_thread_sigstate (thread->kernel_thread); + if (thread == _pthread_self ()) + ss = _hurd_self_sigstate (); + else + ss = _hurd_thread_sigstate (thread->kernel_thread); assert (ss); _hurd_sigstate_lock (ss);