projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e34dca5
)
(main): Use TEMP_FAILURE_RETRY with waitpid.
author
drepper
<drepper>
Sat, 7 Jun 2003 00:38:27 +0000
(
00:38
+0000)
committer
drepper
<drepper>
Sat, 7 Jun 2003 00:38:27 +0000
(
00:38
+0000)
test-skeleton.c
patch
|
blob
|
history
diff --git
a/test-skeleton.c
b/test-skeleton.c
index
64297fa
..
c2eff6b
100644
(file)
--- 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");