windows-daemon-threads-shutdown-sync-20071223
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 24 Dec 2007 05:23:28 +0000 (05:23 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 24 Dec 2007 05:23:28 +0000 (05:23 +0000)
commit8a923a199d91aae6d1fc9bb6a2f1856fe5dbcb07
tree46f7491c6d248f8e37c9c952deabfb41a8d8776a
parent815cd6f19ec37330e7829506c1208c9426b3a41f
windows-daemon-threads-shutdown-sync-20071223

LICENSE MIT

Windows Error Reporting received crashes caused by a failure to synchronize
the shutdown of the AFS client service with the background daemon threads.
The daemon threads (cm_Daemon, cm_BkgDaemon+, cm_IPAddrDaemon) could be
accessing data structures as they were being freed or unmapped.

Add synchronization mechanisms to signal the termination of the threads
with the shutdown of the service.
src/WINNT/afsd/afsd_init.c
src/WINNT/afsd/cm_daemon.c
src/WINNT/afsd/cm_daemon.h