]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: Make __pthread_create_internal directly call __pthread_sigmask
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 5 Mar 2025 23:15:25 +0000 (00:15 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 6 Mar 2025 01:28:35 +0000 (02:28 +0100)
__pthread_sigmask will already know to pass our current ss to
__sigthreadmask.

htl/pt-create.c

index 98948ec8031337939a0496ee74391bbb00377ab6..d3fee29d20c1e3d3e49a0533011a737926e069f7 100644 (file)
@@ -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)