Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
  • Loading branch information
Ulrich Drepper committed Jun 7, 2003
1 parent b1bfeac commit 5385447
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions test-skeleton.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 5385447

Please sign in to comment.