1
0
Fork 0
mirror of git://sourceware.org/git/glibc.git synced 2025-03-06 20:58:33 +01:00

htl: Make __pthread_create_internal directly call __pthread_sigmask

__pthread_sigmask will already know to pass our current ss to
__sigthreadmask.
This commit is contained in:
Samuel Thibault 2025-03-06 00:15:25 +01:00
parent 81c4ec1ca8
commit 4e68a5ca5d

View file

@ -203,10 +203,7 @@ __pthread_create_internal (struct __pthread **thread,
creating thread. The set of signals pending for the new 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 shall be empty." If the current thread is not a pthread then we
just inherit the process' sigmask. */ just inherit the process' sigmask. */
if (GL (dl_pthread_num_threads) == 1) err = __pthread_sigmask (0, 0, &pthread->init_sigset);
err = __sigprocmask (0, 0, &pthread->init_sigset);
else
err = __pthread_sigstate (_pthread_self (), 0, 0, &pthread->init_sigset, 0);
assert_perror (err); assert_perror (err);
if (start_routine) if (start_routine)