mirror of git://git.musl-libc.org/musl
fix loop logic cruft in dynamic tls installation
commit 9d44b6460a
inadvertently
contained leftover logic from a previous approach to the fallback
signaling loop. it had no adverse effect, since j was always nonzero
if the loop body was reachable, but it makes no sense to be there with
the current approach to avoid signaling self.
This commit is contained in:
parent
ad795d56ba
commit
609dd57c4e
|
@ -1410,7 +1410,7 @@ static void install_new_tls(void)
|
||||||
memset(&sa.sa_mask, -1, sizeof sa.sa_mask);
|
memset(&sa.sa_mask, -1, sizeof sa.sa_mask);
|
||||||
__libc_sigaction(SIGSYNCCALL, &sa, 0);
|
__libc_sigaction(SIGSYNCCALL, &sa, 0);
|
||||||
for (td=self->next; td!=self; td=td->next)
|
for (td=self->next; td!=self; td=td->next)
|
||||||
if (j) __syscall(SYS_tkill, td->tid, SIGSYNCCALL);
|
__syscall(SYS_tkill, td->tid, SIGSYNCCALL);
|
||||||
for (td=self->next; td!=self; td=td->next)
|
for (td=self->next; td!=self; td=td->next)
|
||||||
sem_wait(&barrier_sem);
|
sem_wait(&barrier_sem);
|
||||||
sa.sa_handler = SIG_IGN;
|
sa.sa_handler = SIG_IGN;
|
||||||
|
|
Loading…
Reference in New Issue