mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
2003-04-03 Ulrich Drepper <drepper@redhat.com> * 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.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include <stackinfo.h>
|
||||
#include <internaltypes.h>
|
||||
#include <pthread-functions.h>
|
||||
#include <atomic.h>
|
||||
|
||||
|
||||
/* 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user