windows-pthread-cleanup-20060424
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 24 Apr 2006 15:25:12 +0000 (15:25 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 24 Apr 2006 15:25:12 +0000 (15:25 +0000)
commitedff1e8788a2cadfd6bb9e08f9cfdbfb491924a6
tree7fc70d0f4cc1808886c23587b998cca49301b69a
parent237ab6e5ba1e385d70601b48c89a56a409cc3050
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.
src/WINNT/pthread/pthread.c
src/WINNT/pthread/pthread.def