(pthread_cancel): Don't do anything if cancelation is disabled.

This commit is contained in:
Ulrich Drepper 2000-09-28 22:46:36 +00:00
parent 4ccacaa1ab
commit b2884f159d

View File

@ -64,7 +64,7 @@ int pthread_cancel(pthread_t thread)
th = handle->h_descr; th = handle->h_descr;
if (th->p_canceled) { if (th->p_cancelstate == PTHREAD_CANCEL_DISABLE || th->p_canceled) {
__pthread_unlock(&handle->h_lock); __pthread_unlock(&handle->h_lock);
return 0; return 0;
} }