]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-daemon-threads-shutdown-sync-20071223
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 24 Dec 2007 05:24:14 +0000 (05:24 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 24 Dec 2007 05:24:14 +0000 (05:24 +0000)
commit50bf917efd83f52b4ea53779607cbf8e01b5f47c
tree8344e2e2e7b6fcab899a30f34b0e46c13e2746ee
parenta4dc1317caa6d75ec30dc862bbc66d822fcaed1e
DEVEL15-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.

(cherry picked from commit 8a923a199d91aae6d1fc9bb6a2f1856fe5dbcb07)
src/WINNT/afsd/afsd_init.c
src/WINNT/afsd/cm_daemon.c
src/WINNT/afsd/cm_daemon.h