View | Details | Raw Unified | Return to bug 37614
Collapse All | Expand All

(-)uthread_cancel.c (-1 / +2 lines)
Lines 186-192 Link Here
186
pthread_testcancel(void)
186
pthread_testcancel(void)
187
{
187
{
188
	if (((_thread_run->cancelflags & PTHREAD_CANCEL_DISABLE) == 0) &&
188
	if (((_thread_run->cancelflags & PTHREAD_CANCEL_DISABLE) == 0) &&
189
	    ((_thread_run->cancelflags & PTHREAD_CANCELLING) != 0)) {
189
	    ((_thread_run->cancelflags & PTHREAD_CANCELLING) != 0) &&
190
	    ((_thread_run->flags & PTHREAD_EXITING) != 0)) {
190
		/*
191
		/*
191
		 * It is possible for this thread to be swapped out
192
		 * It is possible for this thread to be swapped out
192
		 * while performing cancellation; do not allow it
193
		 * while performing cancellation; do not allow it

Return to bug 37614