From: William A. Rowe Jr Date: Sat, 13 Jan 2001 23:30:53 +0000 (+0000) Subject: That's not a -D'ef - its an envar - you can't pass foo=bar in apache! X-Git-Tag: APACHE_2_0_BETA_CANDIDATE_1~202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eaf753552cfa117a1d7951c311e91300f6811eca;p=apache That's not a -D'ef - its an envar - you can't pass foo=bar in apache! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87682 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index 3281643b79..96585a7c5c 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -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.