git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87682
13f79535-47bb-0310-9956-
ffa450edef68
char optbuf[3];
const char *optarg;
int fixed_args;
- int pid;
+ char *pid;
apr_getopt_t *opt;
int running_as_service = 1;
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.