From: William A. Rowe Jr Date: Mon, 4 Feb 2002 23:37:37 +0000 (+0000) Subject: Fixed for the recent apr-ized logfile changes. The Win32 service never X-Git-Tag: 2.0.32~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0e94b16de7f6d1ccbe983af7fe8fb172532d30f;p=apache Fixed for the recent apr-ized logfile changes. The Win32 service never has a STDERR channel in the first place, so the first ap_open_stderr_log() fails. We need to open it after we've initialized the service control manager and created the stderr pipe thread that logs stderr output over in our Application Event Log. The failure message still looks pretty danged stupid on WinXP however; "The Apache2 service on Local Computer started and then stopped." [ok, that part is straightforward.] "Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service." [that's the bogus bit.] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93241 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index 00d6c0aa78..9ecfcd99b3 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -1895,8 +1895,10 @@ void winnt_rewrite_args(process_rec *process) */ if (osver.dwPlatformId == VER_PLATFORM_WIN32_NT) { service_to_start_success = mpm_service_to_start(&service_name); - if (service_to_start_success == APR_SUCCESS) + if (service_to_start_success == APR_SUCCESS) { service_set = APR_SUCCESS; + ap_open_stderr_log(process->pool); + } } }