aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-cancel7.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-cancel7.c')
-rw-r--r--nptl/tst-cancel7.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nptl/tst-cancel7.c b/nptl/tst-cancel7.c
index 50b4fde..be9b1c6 100644
--- a/nptl/tst-cancel7.c
+++ b/nptl/tst-cancel7.c
@@ -102,7 +102,9 @@ do_test (void)
return 1;
}
- sleep (1);
+ do
+ sleep (1);
+ while (access (pidfilename, R_OK) != 0);
if (pthread_cancel (th) != 0)
{