about summary refs log tree commit diff
path: root/test-skeleton.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-07 00:40:13 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-07 00:40:13 +0000
commit53854476351c09595b3f7f83041643d46970150f (patch)
treef1abe157dcee0a38dbc5586693576317e56394bc /test-skeleton.c
parentb1bfeac00b44818468c118ebaf52c02e8f056ca0 (diff)
downloadglibc-53854476351c09595b3f7f83041643d46970150f.tar.gz
glibc-53854476351c09595b3f7f83041643d46970150f.tar.xz
glibc-53854476351c09595b3f7f83041643d46970150f.zip
Update.
	* test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
Diffstat (limited to 'test-skeleton.c')
-rw-r--r--test-skeleton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-skeleton.c b/test-skeleton.c
index 64297fa988..c2eff6ba5e 100644
--- a/test-skeleton.c
+++ b/test-skeleton.c
@@ -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");