diff options
Diffstat (limited to 'test-skeleton.c')
-rw-r--r-- | test-skeleton.c | 4 |
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"); |