summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_exit.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2002-03-19 22:58:56 +0000
committerdeischen <deischen@FreeBSD.org>2002-03-19 22:58:56 +0000
commitf36956581759863bfd4e05c77c234e512834ebd4 (patch)
tree64a520af93e4e04f24e730bf2a51ce6ccb8ad724 /lib/libc_r/uthread/uthread_exit.c
parentc8ef9d9122863cc158177add839c76b14d92aa66 (diff)
downloadFreeBSD-src-f36956581759863bfd4e05c77c234e512834ebd4.zip
FreeBSD-src-f36956581759863bfd4e05c77c234e512834ebd4.tar.gz
Add the ability to recognize old references to keys, and return NULL
when old keys are referenced (after pthread_key_delete()) via pthread_getspecific().
Diffstat (limited to 'lib/libc_r/uthread/uthread_exit.c')
-rw-r--r--lib/libc_r/uthread/uthread_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_exit.c b/lib/libc_r/uthread/uthread_exit.c
index d916f5c..c9513cf 100644
--- a/lib/libc_r/uthread/uthread_exit.c
+++ b/lib/libc_r/uthread/uthread_exit.c
@@ -158,7 +158,7 @@ _pthread_exit(void *status)
curthread->attr.cleanup_attr(curthread->attr.arg_attr);
}
/* Check if there is thread specific data: */
- if (curthread->specific_data != NULL) {
+ if (curthread->specific != NULL) {
/* Run the thread-specific data destructors: */
_thread_cleanupspecific();
}
OpenPOWER on IntegriCloud