summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-04-04 16:25:29 +0000
committerAndi Gutmans <andi@php.net>2001-04-04 16:25:29 +0000
commitac8ab878416b9203542c96ce24571aaee0b13224 (patch)
tree28cd0f4aee3aa3f48559d555f8a7cce74c2e8c6a /TSRM
parent6e2a6e07db1312e9730f4e6ace774b0f2619163b (diff)
downloadphp-git-ac8ab878416b9203542c96ce24571aaee0b13224.tar.gz
- This can explain lots of instability on multi-threaded platforms!
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/TSRM.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c
index 24d8ea969e..faf1f1f0c7 100644
--- a/TSRM/TSRM.c
+++ b/TSRM/TSRM.c
@@ -352,7 +352,7 @@ void ts_free_thread(void)
if (last) {
last->next = thread_resources->next;
} else {
- tsrm_tls_table[hash_value]=NULL;
+ tsrm_tls_table[hash_value] = thread_resources->next;
}
#if defined(PTHREADS)
pthread_setspecific( tls_key, 0 );