summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_create.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/libpthread/thread/thr_create.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/libpthread/thread/thr_create.c')
-rw-r--r--lib/libpthread/thread/thr_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c
index 70227ea..f846789 100644
--- a/lib/libpthread/thread/thr_create.c
+++ b/lib/libpthread/thread/thr_create.c
@@ -179,7 +179,7 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr,
TAILQ_INIT(&new_thread->mutexq);
/* Initialise hooks in the thread structure: */
- new_thread->specific_data = NULL;
+ new_thread->specific = NULL;
new_thread->cleanup = NULL;
new_thread->flags = 0;
new_thread->poll_data.nfds = 0;
OpenPOWER on IntegriCloud