From 86246935dafa15d762e202d39bca55b113c9ee56 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 4 Apr 2003 07:59:55 +0000 Subject: Update. 2003-04-03 Ulrich Drepper * init.c (sigcancel_handler): Don't set EXITING_BIT here. * libc-cancellation.c (__libc_enable_asynccancel): Likewise. * pthreadP.h (__do_cancel): Set EXITING_BIT here. * Makefile (tests): Add tst-cancel11. * tst-cancel11.c: New file. --- nptl/pthreadP.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nptl/pthreadP.h') diff --git a/nptl/pthreadP.h b/nptl/pthreadP.h index d90ac36..725c87d 100644 --- a/nptl/pthreadP.h +++ b/nptl/pthreadP.h @@ -29,6 +29,7 @@ #include #include #include +#include /* Internal variables. */ @@ -149,6 +150,9 @@ __do_cancel (void) { struct pthread *self = THREAD_SELF; + /* Make sure we get no more cancellations. */ + atomic_bit_set (&self->cancelhandling, EXITING_BIT); + /* Throw an exception. */ // XXX TBI -- cgit v1.1