From cba0ca7925f8e324e8af9f88187b3473363853a1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 16 May 2009 14:55:59 -0700 Subject: Unify source for async cancel handling. Unify all three places where we enable async cancellation for syscalls. Optimize a bit. --- nptl/cancellation.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'nptl/cancellation.c') 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)) -- cgit 1.4.1