diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-06-07 00:40:13 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-06-07 00:40:13 +0000 |
commit | 53854476351c09595b3f7f83041643d46970150f (patch) | |
tree | f1abe157dcee0a38dbc5586693576317e56394bc | |
parent | b1bfeac00b44818468c118ebaf52c02e8f056ca0 (diff) | |
download | glibc-53854476351c09595b3f7f83041643d46970150f.tar.gz |
Update.
* test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | test-skeleton.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -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. 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"); |