]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE14-windows-pthread-cleanup-20060424
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 2 May 2006 04:51:55 +0000 (04:51 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 2 May 2006 04:51:55 +0000 (04:51 +0000)
commitae7a614e26a15b4b6c8ba0be3afcac76df9476f1
tree5e3e735a66db493afee66bdd9a16bee3607bea22
parent9353675a54adedd7b60f9875352dff55c246981a
STABLE14-windows-pthread-cleanup-20060424

A number of crash reports have been filed with Microsoft in afspthread.dll.
The crashes are occuring as the processes are terminating.  In order to
attempt to address this problem this patch adds support for a DllMain()
entry point that is used to cleanup Thread Local Storage and the various
RX queues.  One theory is that processes are loading and unloading DLLs
that are linked to afspthread.dll leaving the pthread data in a very
inconsistent state after each unload.  By cleaning up the static data
during the unload, if afspthread is loading again it will be forced to
initialize the data once again.

(cherry picked from commit edff1e8788a2cadfd6bb9e08f9cfdbfb491924a6)
src/WINNT/pthread/pthread.c
src/WINNT/pthread/pthread.def