about summary refs log tree commit diff
path: root/nptl/tst-cancel7.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-16 22:11:14 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-16 22:11:14 +0000
commite4335f9a238ff4016b28b8c8d8a3ff376bf5d1c4 (patch)
tree9bbe5f92a7172fe9790e7b437de2db1b6460551d /nptl/tst-cancel7.c
parentfdcd8f9c7163b8a3120c3d3a7763728b1a61728d (diff)
downloadglibc-e4335f9a238ff4016b28b8c8d8a3ff376bf5d1c4.tar.gz
glibc-e4335f9a238ff4016b28b8c8d8a3ff376bf5d1c4.tar.xz
glibc-e4335f9a238ff4016b28b8c8d8a3ff376bf5d1c4.zip
Update.
	* tst-cancel7.c (do_test): Make sure the pid file exists before
	canceling the thread.

	* libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
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 50b4fdec60..be9b1c6064 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)
     {