Fix change to prevent cancel signal in unsafe places.
commit6b23316e66ec3d2f1417896e1fa25c24a8ae32d3
authorUlrich Drepper <drepper@redhat.com>
Sat, 16 May 2009 03:42:36 +0000 (15 20:42 -0700)
committerPetr Baudis <pasky@suse.cz>
Fri, 22 May 2009 02:45:12 +0000 (22 04:45 +0200)
tree40f1b2e50150a22032b4cd5c3e71fbaf192c2b8d
parentf84a1e419017b86b4745ae983854b3d57e8c55f1
Fix change to prevent cancel signal in unsafe places.

The bits tested to decide when to delay the return when switching
off async cancel mode were wrong.  Fix that.  Also close a race
condition in pthread_cancel where the bit indicating the cancellation
is unconditionally set even if the cancel type might have changed.
(cherry picked from commit 9437b427cec6266abd303983848549a5c4ba0d0a)
nptl/ChangeLog
nptl/cancellation.c
nptl/libc-cancellation.c
nptl/pthread_cancel.c