Fix change to prevent cancel signal in unsafe places.
commit9437b427cec6266abd303983848549a5c4ba0d0a
authorUlrich Drepper <drepper@redhat.com>
Sat, 16 May 2009 03:42:36 +0000 (15 20:42 -0700)
committerUlrich Drepper <drepper@redhat.com>
Sat, 16 May 2009 03:42:36 +0000 (15 20:42 -0700)
tree7d3c7df6abb9a33d4f35a3dc20baa59ff1a53ea1
parentbbc5d74dd0bd1c3dbe7ea8515f081dc7e318272c
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.
nptl/ChangeLog
nptl/cancellation.c
nptl/libc-cancellation.c
nptl/pthread_cancel.c