diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-02-22 02:24:33 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-02-22 02:24:33 -0500 |
commit | 609dd57c4e32d68433a062a7ad8004ace90baf06 (patch) | |
tree | e8542d0b3958e49a8428473ad68386dad811be0b /ldso | |
parent | ad795d56ba3fb9d69f524ee676e3b1e2355cceb7 (diff) | |
download | musl-609dd57c4e32d68433a062a7ad8004ace90baf06.zip musl-609dd57c4e32d68433a062a7ad8004ace90baf06.tar.gz musl-609dd57c4e32d68433a062a7ad8004ace90baf06.tar.bz2 |
fix loop logic cruft in dynamic tls installation
commit 9d44b6460ab603487dab4d916342d9ba4467e6b9 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.
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/dynlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/dynlink.c b/ldso/dynlink.c index 9e2adb2..c7d9dd3 100644 --- a/ldso/dynlink.c +++ b/ldso/dynlink.c @@ -1410,7 +1410,7 @@ static void install_new_tls(void) memset(&sa.sa_mask, -1, sizeof sa.sa_mask); __libc_sigaction(SIGSYNCCALL, &sa, 0); 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) sem_wait(&barrier_sem); sa.sa_handler = SIG_IGN; |