/[Apache-SVN]
ViewVC logotype

Revision 1801636


Jump to revision: Previous Next
Author: kotkov
Date: Tue Jul 11 16:46:47 2017 UTC (6 years, 8 months ago)
Changed paths: 1
Log Message:
mpm_winnt: Avoid using TerminateThread() in case the shutdown routine
hits a timeout while waiting for the worker threads to exit.

Using TerminateThread() can have dangerous consequences such as deadlocks —
say, if the the thread is terminated while holding a lock or a heap lock
in the middle of HeapAlloc(), as these locks would not be released.
Or it can corrupt the application state and cause a crash.

(See https://msdn.microsoft.com/en-us/library/windows/desktop/ms686717)

Rework the code to call TerminateProcess() in the described circumstances
and leave the cleanup to the operating system.


Changed paths

Path Details
Directoryhttpd/httpd/trunk/server/mpm/winnt/child.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26