1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
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:
Ulrich Drepper
2003-04-04 07:59:55 +00:00
parent d9eb687be2
commit 86246935da
6 changed files with 137 additions and 4 deletions

View File

@@ -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