From: GNU Libc Maintainers Date: Wed, 18 Jun 2025 04:49:31 +0000 (+0200) Subject: git-pthread_sigmask_nothread X-Git-Tag: archive/raspbian/2.41-9+rpi1^2~57 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=412a801a86925abba98c17e36f0ced11cc81d4f4;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);