mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 06:30:05 +00:00
Update.
* test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
This commit is contained in:
parent
b1bfeac00b
commit
5385447635
@ -1,5 +1,7 @@
|
|||||||
2003-06-06 Ulrich Drepper <drepper@redhat.com>
|
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
|
* sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
|
||||||
%edx for first parameter. This means no pushl and therefore the
|
%edx for first parameter. This means no pushl and therefore the
|
||||||
unwind info isn't screwed up.
|
unwind info isn't screwed up.
|
||||||
|
@ -290,11 +290,11 @@ main (int argc, char *argv[])
|
|||||||
/* Default timeout is two seconds. */
|
/* Default timeout is two seconds. */
|
||||||
# define TIMEOUT 2
|
# define TIMEOUT 2
|
||||||
#endif
|
#endif
|
||||||
alarm (TIMEOUT);
|
|
||||||
signal (SIGALRM, timeout_handler);
|
signal (SIGALRM, timeout_handler);
|
||||||
|
alarm (TIMEOUT);
|
||||||
|
|
||||||
/* Wait for the regular termination. */
|
/* Wait for the regular termination. */
|
||||||
termpid = waitpid (pid, &status, 0);
|
termpid = TEMP_FAILURE_RETRY (waitpid (pid, &status, 0));
|
||||||
if (termpid == -1)
|
if (termpid == -1)
|
||||||
{
|
{
|
||||||
printf ("Waiting for test program failed: %m\n");
|
printf ("Waiting for test program failed: %m\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user