Changes with Apache 2.0.18-dev
+ *) Win32: Add support for reliable piped logs. If the logging process
+ goes down, Apache will automatically restart it. This function has
+ been part of Apache on Unix/Linux/BSD since the early v1.3 releases.
+ [Bill Stoddard]
+
*) Do not start piped log processes during the config file
preflight. This change also circumvents a problem on
Windows where the rotatelog processes created during preflight
* number of completion contexts, etc.)
*/
while (1) {
- rv = WaitForMultipleObjects(2, (HANDLE *) child_events, FALSE, INFINITE);
+ rv = WaitForMultipleObjects(2, (HANDLE *) child_events, FALSE, 1000);
cld = rv - WAIT_OBJECT_0;
if (rv == WAIT_FAILED) {
/* Something serious is wrong */
break;
}
else if (rv == WAIT_TIMEOUT) {
- /* Hey, this cannot happen */
- ap_log_error(APLOG_MARK, APLOG_CRIT, APR_SUCCESS, server_conf,
- "Child %d: WAIT_TIMEOUT -- shutting down server", my_pid);
- break;
+ apr_proc_other_child_check();
}
else if (cld == 0) {
/* Exit event was signaled */