WSATerminate() before this thread picked up it's sleepy head to discover
the world was gone beneath it on 1GHz+ CPU WinXP configurations.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94437
13f79535-47bb-0310-9956-
ffa450edef68
WaitForSingleObject(pCompContext->Overlapped.hEvent, INFINITE);
}
+ /* ### There is a race condition here. The mainline may hit
+ * WSATerminate before this thread reawakens. Look First.
+ */
+ if (shutdown_in_progress) {
+ break;
+ }
+
/* Inherit the listen socket settings. Required for
* shutdown() to work
*/