]> sourceware.org Git - glibc.git/blobdiff - test-skeleton.c
Update.
[glibc.git] / test-skeleton.c
index 64297fa988cb925f4350c4a66f74d2e0d35426b1..c2eff6ba5eac2c8992fac1e1609d5ac35c2fa6b3 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");
This page took 0.029832 seconds and 5 git commands to generate.