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/libpthread/thread/thr_create.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/libpthread/thread/thr_create.c')
-rw-r--r-- | lib/libpthread/thread/thr_create.c | 2 |
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; |