From db85da4e282b7b73a7f30c4cc1c6fa28e6a12858 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Thu, 17 Jul 2025 13:21:32 +0200 Subject: [PATCH] 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 --- sysdeps/mach/hurd/htl/pt-sigstate.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.30.2