OpenAFS CVS Commit: openafs/src/WINNT/pthread by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Mon, 01 May 2006 23:51:55 EDT


Update of /cvs/openafs/src/WINNT/pthread
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-4/src/WINNT/pthread

Modified Files:
      Tag: openafs-stable-1_4_x
	pthread.c pthread.def 
Log Message:
DELTA STABLE14-windows-pthread-cleanup-20060424
AUTHOR jaltman@secure-endpoints.com

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.


--- DELTA config for openafs-stable-1_4_x follows ---
STABLE14-windows-pthread-cleanup-20060424 openafs/src/WINNT/pthread/pthread.c 1.6.2.7 1.6.2.8
STABLE14-windows-pthread-cleanup-20060424 openafs/src/WINNT/pthread/pthread.def 1.1 1.1.24.1