diff options
author | deischen <deischen@FreeBSD.org> | 2002-03-19 22:58:56 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2002-03-19 22:58:56 +0000 |
commit | f36956581759863bfd4e05c77c234e512834ebd4 (patch) | |
tree | 64a520af93e4e04f24e730bf2a51ce6ccb8ad724 /lib/libc_r/uthread/uthread_exit.c | |
parent | c8ef9d9122863cc158177add839c76b14d92aa66 (diff) | |
download | FreeBSD-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.c | 2 |
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(); } |