]> granicus.if.org Git - apache/commitdiff
That's not a -D'ef - its an envar - you can't pass foo=bar in apache!
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 13 Jan 2001 23:30:53 +0000 (23:30 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 13 Jan 2001 23:30:53 +0000 (23:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87682 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index 3281643b7937ffecd357f3cd642ec42f5ce55e62..96585a7c5c7b12e68c41d6816b64aa596a9e6cf2 100644 (file)
@@ -1827,7 +1827,7 @@ void winnt_rewrite_args(process_rec *process)
     char optbuf[3];
     const char *optarg;
     int fixed_args;
-    int pid;
+    char *pid;
     apr_getopt_t *opt;
     int running_as_service = 1;
 
@@ -1835,11 +1835,12 @@ void winnt_rewrite_args(process_rec *process)
     GetVersionEx(&osver);
 
     /* AP_PARENT_PID is only valid in the child */
-    pid = ap_exists_config_define("AP_PARENT_PID");
+    pid = getenv("AP_PARENT_PID");
     if (pid) 
     {
         /* This is the child */
         my_pid = GetCurrentProcessId();
+        parent_pid = (DWORD) atol(pid);
 
         /* The parent is responsible for providing the
          * COMPLETE ARGUMENTS REQUIRED to the child.