mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
(sigcancel_handler): Don't set EXITING_BIT here.
This commit is contained in:
10
nptl/init.c
10
nptl/init.c
@ -155,14 +155,8 @@ sigcancel_handler (int sig __attribute ((unused)))
|
|||||||
|
|
||||||
/* Make sure asynchronous cancellation is still enabled. */
|
/* Make sure asynchronous cancellation is still enabled. */
|
||||||
if ((newval & CANCELTYPE_BITMASK) != 0)
|
if ((newval & CANCELTYPE_BITMASK) != 0)
|
||||||
{
|
/* Run the registered destructors and terminate the thread. */
|
||||||
/* The thread is exiting now. */
|
__do_cancel ();
|
||||||
atomic_bit_set (&self->cancelhandling, EXITING_BIT);
|
|
||||||
|
|
||||||
/* Run the registered destructors and terminate the
|
|
||||||
thread. */
|
|
||||||
__do_cancel ();
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user