summaryrefslogtreecommitdiff
path: root/nptl/tst-tls2.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-08 10:30:42 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-08 10:30:42 +0000
commitccf1d5737a2241f2521eb3af2bbf0c118dce828d (patch)
treef3bc34979cc66a962df2b25097bec078cdaeaca2 /nptl/tst-tls2.c
parentd130a3415649b36ac672ab49068aec7c02a8135c (diff)
downloadglibc-ccf1d5737a2241f2521eb3af2bbf0c118dce828d.tar.gz
Update.
* tst-tls2.c (do_test): Add TEMP_FAILURE_RETRY around sem_wait call. * tst-signal3.c (do_test): Likewise. * tst-sem5.c (do_test): Likewise. * tst-kill6.c (do_test): Likewise. * tst-tls3.c (do_test): Likewise. Include <errno.h>. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use add/sub instead of inc/dec. * sysdeps/unix/sysv/linux/i386/lowlevelsem.h: Likewise. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/lowlevelmutex.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
Diffstat (limited to 'nptl/tst-tls2.c')
-rw-r--r--nptl/tst-tls2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/tst-tls2.c b/nptl/tst-tls2.c
index f188d68286..8b0692670e 100644
--- a/nptl/tst-tls2.c
+++ b/nptl/tst-tls2.c
@@ -17,6 +17,7 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#include <errno.h>
#include <pthread.h>
#include <signal.h>
#include <semaphore.h>
@@ -159,7 +160,7 @@ do_test (void)
exit (1);
}
- if (sem_wait (&s) != 0)
+ if (TEMP_FAILURE_RETRY (sem_wait (&s)) != 0)
{
puts ("sem_wait failed");
exit (1);