diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2002-05-18 23:41:36 +0200 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2002-05-18 23:41:36 +0200 |
commit | b919ffc3be39b4070a38e099c23c5eb40a7c235f (patch) | |
tree | 5c1da2fde5a684503b55fb6c429b11f6cc3c1732 /server | |
parent | Resolve the EXEC_ON_READ bit for ServerRoot and other modules that test (diff) | |
download | apache2-b919ffc3be39b4070a38e099c23c5eb40a7c235f.tar.xz apache2-b919ffc3be39b4070a38e099c23c5eb40a7c235f.zip |
Begin passing about apr types instead of odd local conventions.
It seems there may be other uses for tracking information within
an ap_listen_rec, outside of the socket. One of my hassles (that
FirstBill found another way around) was tracking the current
accept socket when the only common data was the listen socket.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95172 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r-- | server/mpm/winnt/mpm_winnt.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index b39472570c..0f41188e66 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -2284,13 +2284,17 @@ void winnt_rewrite_args(process_rec *process) } -static int winnt_pre_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp) +static int winnt_pre_config(apr_pool_t *pconf_, apr_pool_t *plog, apr_pool_t *ptemp) { /* Handle the following SCM aspects in this phase: * * -k runservice [WinNT errors logged from rewrite_args] */ + /* Initialize shared static objects. + */ + pconf = pconf_; + if (ap_exists_config_define("ONE_PROCESS") || ap_exists_config_define("DEBUG")) one_process = -1; @@ -2314,16 +2318,11 @@ static int winnt_pre_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *pte return OK; } -static int winnt_post_config(apr_pool_t *pconf_, apr_pool_t *plog, apr_pool_t *ptemp, server_rec* s) +static int winnt_post_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec* s) { static int restart_num = 0; apr_status_t rv = 0; - /* Initialize shared static objects. - */ - pconf = pconf_; - ap_server_conf = s; - /* Handle the following SCM aspects in this phase: * * -k install @@ -2453,6 +2452,10 @@ static int winnt_post_config(apr_pool_t *pconf_, apr_pool_t *plog, apr_pool_t *p */ static int winnt_open_logs(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s) { + /* Initialize shared static objects. + */ + ap_server_conf = s; + if (parent_pid != my_pid) { return OK; } |