diff options
author | Thomas Schwinge <thomas@schwinge.name> | 2011-11-05 01:16:41 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@schwinge.name> | 2011-11-05 23:37:28 +0100 |
commit | 76af844177c2bacd7a39e865cf0bbe484a68ddb8 (patch) | |
tree | 2d2fb569cafd53203023baabb3046afe437b2efe /sysdeps | |
parent | 081c7aeb4d4de82ab615db565c60dd776a385c34 (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')
-rw-r--r-- | sysdeps/hurd/pt-destroy-specific.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/hurd/pt-destroy-specific.c b/sysdeps/hurd/pt-destroy-specific.c index 23c7fbc..f7896e5 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) |