From e4335f9a238ff4016b28b8c8d8a3ff376bf5d1c4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 16 Feb 2003 22:11:14 +0000 Subject: 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 --- nptl/ChangeLog | 5 ++++- nptl/tst-cancel7.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 72414b17ab..1fb37806e1 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,5 +1,8 @@ 2003-02-16 Ulrich Drepper + * tst-cancel7.c (do_test): Make sure the pid file exists before + canceling the thread. + * tst-rwlock6.c: More pthread_rwlock_timedwrlock and pthread_rwlock_timedrdlock tests. * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests. @@ -13,7 +16,7 @@ * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared. - * libc-cancellation.c (__libc_enable_asynccancel): Rwrite to avoid + * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid going into an endless loop. * Makefile (tests): Add tst-cancel9. * tst-cancel9.c: New file. 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) { -- cgit v1.2.3