summaryrefslogtreecommitdiff
path: root/sysdeps/hurd
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@schwinge.name>2011-11-05 01:16:41 +0100
committerThomas Schwinge <thomas@schwinge.name>2011-11-05 23:37:28 +0100
commitc3ef50224c88053e40017665abc2628d0931f6c5 (patch)
treec9d5dec664b8dabac5c913a89c168262450be14b /sysdeps/hurd
parent221b60d8f0cf39511d26e275b3a0e26a4bdc4f15 (diff)
Correct logic for PTHREAD_KEY_INVALID slots.
* sysdeps/hurd/pt-destroy-specific.c (__pthread_destroy_specific): Correct logic for PTHREAD_KEY_INVALID slots. * tests/test-__pthread_destroy_specific-skip.c: New file. * tests/Makefile (CHECK_SRC): Add test-__pthread_destroy_specific-skip.c.
Diffstat (limited to 'sysdeps/hurd')
-rw-r--r--sysdeps/hurd/pt-destroy-specific.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/hurd/pt-destroy-specific.c b/sysdeps/hurd/pt-destroy-specific.c
index 23c7fbc0..f7896e5e 100644
--- a/sysdeps/hurd/pt-destroy-specific.c
+++ b/sysdeps/hurd/pt-destroy-specific.c
@@ -48,7 +48,7 @@ __pthread_destroy_specific (struct __pthread *thread)
void *value;
if (__pthread_key_destructors[i] == PTHREAD_KEY_INVALID)
- break;
+ continue;
value = hurd_ihash_find (thread->thread_specifics, i);
if (value)