diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2014-01-11 16:34:15 -0800 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2014-01-11 16:34:15 -0800 |
commit | 2112e176757483dd25a7cf38ead63a237bf5e52e (patch) | |
tree | 80f02dd662d0da8f1fe40e96a2965aeb9ac23cba /nptl/tst-tls7mod.c | |
parent | 5d43293bacbdc09e0e060cfd002d2fb34b3facd3 (diff) | |
download | glibc-2112e176757483dd25a7cf38ead63a237bf5e52e.tar.gz glibc-2112e176757483dd25a7cf38ead63a237bf5e52e.tar.xz glibc-2112e176757483dd25a7cf38ead63a237bf5e52e.zip |
Fix a race in tst-tls7, which caused crashes on ppc32.
Diffstat (limited to 'nptl/tst-tls7mod.c')
-rw-r--r-- | nptl/tst-tls7mod.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/nptl/tst-tls7mod.c b/nptl/tst-tls7mod.c index aff29b9d6c..da5af56370 100644 --- a/nptl/tst-tls7mod.c +++ b/nptl/tst-tls7mod.c @@ -29,7 +29,6 @@ static __thread intptr_t tls_data = 0xdeadbeef; void action (int signo, siginfo_t *info, void *ignored) { - sem_t *sem = info->si_value.sival_ptr; if (tls_data != 0xdeadbeef) { write (STDOUT_FILENO, "wrong TLS value\n", 17); @@ -38,6 +37,4 @@ action (int signo, siginfo_t *info, void *ignored) /* arbitrary choice, just write something unique-ish. */ tls_data = (intptr_t) info; - - sem_post (sem); } |