diff options
Diffstat (limited to 'nptl/init.c')
-rw-r--r-- | nptl/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/init.c b/nptl/init.c index 7ad29716ae..4237c6eb48 100644 --- a/nptl/init.c +++ b/nptl/init.c @@ -147,8 +147,8 @@ sigcancel_handler (int sig __attribute ((unused))) /* Already canceled or exiting. */ break; - if (atomic_compare_and_exchange_acq (&self->cancelhandling, newval, - oldval) == 0) + if (! atomic_compare_and_exchange_bool_acq (&self->cancelhandling, + newval, oldval)) { /* Set the return value. */ THREAD_SETMEM (self, result, PTHREAD_CANCELED); |