]> granicus.if.org Git - apache/commitdiff
Backport -r1210443 from trunk
authorMladen Turk <mturk@apache.org>
Mon, 5 Dec 2011 13:11:35 +0000 (13:11 +0000)
committerMladen Turk <mturk@apache.org>
Mon, 5 Dec 2011 13:11:35 +0000 (13:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1210449 13f79535-47bb-0310-9956-ffa450edef68

modules/core/mod_watchdog.c

index 68820e888538f89d052a9fc3dbe968ee9772d7cc..7ad13bf8d4839e5e305dbf406c9c1ed971209f09 100644 (file)
  */
 
 #include "apr.h"
-#if APR_HAVE_PROCESS_H
-#include <process.h>        /* for getpid() on Win32 */
-#endif
-
 #include "mod_watchdog.h"
 #include "ap_provider.h"
 #include "ap_mpm.h"
@@ -447,19 +443,6 @@ static int wd_post_config_hook(apr_pool_t *pconf, apr_pool_t *plog,
         /* First time config phase -- skip. */
         return OK;
 
-#if defined(WIN32)
-    {
-        const char *ppid = getenv("AP_PARENT_PID");
-        if (ppid && *ppid) {
-            ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(01570)
-                "[%" APR_PID_T_FMT " - %s] "
-                "child second stage post config hook",
-                getpid(), ppid);
-            return OK;
-        }
-    }
-#endif
-
     apr_pool_userdata_get((void *)&wd_server_conf, pk, pproc);
     if (!wd_server_conf) {
         if (!(wd_server_conf = apr_pcalloc(pproc, sizeof(wd_server_conf_t))))