(__libc_enable_asynccancel): Correct test for failed cmpxchg.
authordrepper <drepper>
Sun, 23 Feb 2003 09:57:41 +0000 (09:57 +0000)
committerdrepper <drepper>
Sun, 23 Feb 2003 09:57:41 +0000 (09:57 +0000)
nptl/libc-cancellation.c

index af56891..d9ad94f 100644 (file)
@@ -47,7 +47,7 @@ __libc_enable_asynccancel (void)
            break;
 
          if (atomic_compare_and_exchange_acq (&self->cancelhandling, newval,
-                                              oldval) == 0)
+                                              oldval) != 0)
            /* Somebody else modified the word, try again.  */
            continue;