about summary refs log tree commit diff
path: root/nptl/tst-kill6.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-kill6.c')
-rw-r--r--nptl/tst-kill6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/tst-kill6.c b/nptl/tst-kill6.c
index f929a302fc..9956dcb9b8 100644
--- a/nptl/tst-kill6.c
+++ b/nptl/tst-kill6.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 <semaphore.h>
 #include <signal.h>
@@ -112,7 +113,7 @@ do_test (void)
 	  exit (1);
 	}
 
-      if (sem_wait (&sem) != 0)
+      if (TEMP_FAILURE_RETRY (sem_wait (&sem)) != 0)
 	{
 	  puts ("sem_wait failed");
 	  exit (1);