git-pthread_sigmask_nothread
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Thu, 17 Jul 2025 11:21:32 +0000 (13:21 +0200)
committerAurelien Jarno <aurel32@debian.org>
Thu, 17 Jul 2025 11:21:32 +0000 (13:21 +0200)
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

index a501793514ef5a2fbe50c3628587313322a806a3..18981c4826a58cd95ff8a8b0bbc11a197bccef16 100644 (file)
@@ -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);