1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

(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;
if (th->p_canceled) {
if (th->p_cancelstate == PTHREAD_CANCEL_DISABLE || th->p_canceled) {
__pthread_unlock(&handle->h_lock);
return 0;
}