aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-signal3.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-signal3.c')
-rw-r--r--nptl/tst-signal3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nptl/tst-signal3.c b/nptl/tst-signal3.c
index 3de2887545..ef9ca9cc15 100644
--- a/nptl/tst-signal3.c
+++ b/nptl/tst-signal3.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -17,6 +17,7 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#include <errno.h>
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
@@ -156,7 +157,7 @@ do_test (void)
for (i = 0; i < ROUNDS; ++i)
{
- if (sem_wait (&sem) != 0)
+ if (TEMP_FAILURE_RETRY (sem_wait (&sem)) != 0)
{
printf ("sem_wait round %d failed: %m\n", i);
exit (1);