diff mbox series

[hurd,commited] htl: Make __pthread_create_internal directly call __pthread_sigmask

Message ID 20250306100558.1068151-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] htl: Make __pthread_create_internal directly call __pthread_sigmask | expand

Commit Message

Samuel Thibault March 6, 2025, 10:05 a.m. UTC
__pthread_sigmask will already know to pass our current ss to
__sigthreadmask.
---
 htl/pt-create.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/htl/pt-create.c b/htl/pt-create.c
index 98948ec803..d3fee29d20 100644
--- a/htl/pt-create.c
+++ b/htl/pt-create.c
@@ -203,10 +203,7 @@  __pthread_create_internal (struct __pthread **thread,
      creating thread.  The set of signals pending for the new thread
      shall be empty."  If the current thread is not a pthread then we
      just inherit the process' sigmask.  */
-  if (GL (dl_pthread_num_threads) == 1)
-    err = __sigprocmask (0, 0, &pthread->init_sigset);
-  else
-    err = __pthread_sigstate (_pthread_self (), 0, 0, &pthread->init_sigset, 0);
+  err = __pthread_sigmask (0, 0, &pthread->init_sigset);
   assert_perror (err);
 
   if (start_routine)