about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-10-02 15:40:54 +0000
committerUlrich Drepper <drepper@redhat.com>2005-10-02 15:40:54 +0000
commitb71ce91003685ef4effea831b6f9e77693d8d580 (patch)
treef4df9682640018c2a099878255d51c178de7d776 /nptl
parentdff9a7a163e9f5e28f36f9a701acf74f8f9d7968 (diff)
downloadglibc-b71ce91003685ef4effea831b6f9e77693d8d580.tar.gz
glibc-b71ce91003685ef4effea831b6f9e77693d8d580.tar.xz
glibc-b71ce91003685ef4effea831b6f9e77693d8d580.zip
* allocatestack.c (setxid_signal_thread): Need to use
	atomic_compare_and_exchange_bool_acq.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/allocatestack.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 555df8311d..cb4707257d 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-02  Jakub Jelinek  <jakub@redhat.com>
+
+	* allocatestack.c (setxid_signal_thread): Need to use
+	atomic_compare_and_exchange_bool_acq.
+
 2005-10-01  Ulrich Drepper  <drepper@redhat.com>
             Jakub Jelinek  <jakub@redhat.com>
 
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index bb27c180e6..f0dddf051d 100644
--- a/nptl/allocatestack.c
+++ b/nptl/allocatestack.c
@@ -834,8 +834,8 @@ setxid_signal_thread (struct xid_command *cmdp, struct pthread *t)
 	  if ((ch & EXITING_BITMASK) != 0)
 	    return;
 	}
-      while (atomic_compare_and_exchange_val_acq (&t->cancelhandling,
-						  ch | SETXID_BITMASK, ch));
+      while (atomic_compare_and_exchange_bool_acq (&t->cancelhandling,
+						   ch | SETXID_BITMASK, ch));
     }
 
   int val;