Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 7 Jun 2003 00:40:13 +0000 (00:40 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 7 Jun 2003 00:40:13 +0000 (00:40 +0000)
* test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.

ChangeLog
test-skeleton.c

index 342a2a1..6d054f1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2003-06-06  Ulrich Drepper  <drepper@redhat.com>
 
+       * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
+
        * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
        %edx for first parameter.  This means no pushl and therefore the
        unwind info isn't screwed up.
index 64297fa..c2eff6b 100644 (file)
@@ -290,11 +290,11 @@ main (int argc, char *argv[])
   /* Default timeout is two seconds.  */
 # define TIMEOUT 2
 #endif
-  alarm (TIMEOUT);
   signal (SIGALRM, timeout_handler);
+  alarm (TIMEOUT);
 
   /* Wait for the regular termination.  */
-  termpid = waitpid (pid, &status, 0);
+  termpid = TEMP_FAILURE_RETRY (waitpid (pid, &status, 0));
   if (termpid == -1)
     {
       printf ("Waiting for test program failed: %m\n");