aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-05-16 14:55:59 -0700
committerUlrich Drepper <drepper@redhat.com>2009-05-16 14:55:59 -0700
commitcba0ca7925f8e324e8af9f88187b3473363853a1 (patch)
tree01e522177c8c519f439e0b4e978d71bc528d8b1d /nptl/cancellation.c
parentRemove sunrpc/.gitignore. (diff)
downloadglibc-cba0ca7925f8e324e8af9f88187b3473363853a1.tar.gz
glibc-cba0ca7925f8e324e8af9f88187b3473363853a1.tar.bz2
glibc-cba0ca7925f8e324e8af9f88187b3473363853a1.zip
Unify source for async cancel handling.
Unify all three places where we enable async cancellation for syscalls. Optimize a bit.
Diffstat (limited to 'nptl/cancellation.c')
-rw-r--r--nptl/cancellation.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/nptl/cancellation.c b/nptl/cancellation.c
index 2a6f83d28a..eac7973db7 100644
--- a/nptl/cancellation.c
+++ b/nptl/cancellation.c
@@ -78,9 +78,6 @@ __pthread_disable_asynccancel (int oldtype)
{
newval = oldval & ~CANCELTYPE_BITMASK;
- if (newval == oldval)
- break;
-
int curval = THREAD_ATOMIC_CMPXCHG_VAL (self, cancelhandling, newval,
oldval);
if (__builtin_expect (curval == oldval, 1))