* DevNotes: Add entry cgf-000006.

* thread.cc (pthread::pop_cleanup_handler): Set cancel state to disabled to
avoid recursively waiting for cancel.
This commit is contained in:
Christopher Faylor
2012-05-12 20:26:43 +00:00
parent 348b56b5a3
commit 1f99484812
4 changed files with 25 additions and 0 deletions

View File

@ -1057,6 +1057,9 @@ pthread::pop_cleanup_handler (int const execute)
mutex.lock ();
/* We will no honor cancels since the thread is exiting. */
cancelstate = PTHREAD_CANCEL_DISABLE;
if (cleanup_stack != NULL)
{
__pthread_cleanup_handler *handler = cleanup_stack;