mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
(pthread_cancel): Don't do anything if cancelation is disabled.
This commit is contained in:
parent
4ccacaa1ab
commit
b2884f159d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user