]> granicus.if.org Git - apache/commitdiff
Windows: Fix output of -M, -L, and similar command-line options
authorJeff Trawick <trawick@apache.org>
Fri, 17 Aug 2012 20:36:10 +0000 (20:36 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 17 Aug 2012 20:36:10 +0000 (20:36 +0000)
which display information about the server configuration.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1374428 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
server/mpm/winnt/mpm_winnt.c

diff --git a/CHANGES b/CHANGES
index 4264970d69880e990ef61280ac13e8766f3fc109..b3fb254d5b241a2105f3ce1a1f834637a4ad0027 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) Windows: Fix output of -M, -L, and similar command-line options
+     which display information about the server configuration.
+     [Jeff Trawick]
+
   *) mod_ssl: Catch missing or mismatched client cert/key pairs with
      SSLProxyMachineCertificateFile/Path directives.  PR 52212.  
      [Keith Burdis <keith burdis.org>, Joe Orton]
index 4f6f8fe550ea7f75d9a435915a0406f8de30fdb6..3ce8e14453d3c77fa705e9238eca09c30e86fafc 100644 (file)
@@ -1372,7 +1372,8 @@ static int winnt_pre_config(apr_pool_t *pconf_, apr_pool_t *plog, apr_pool_t *pt
                      service_name);
         exit(APEXIT_INIT);
     }
-    else if (!one_process && !my_generation) {
+    else if (ap_state_query(AP_SQ_RUN_MODE) == AP_SQ_RM_NORMAL
+             && !one_process && !my_generation) {
         /* Open a null handle to soak stdout in this process.
          * We need to emulate apr_proc_detach, unix performs this
          * same check in the pre_config hook (although it is