Commit b8f7953b authored by Chris Darroch's avatar Chris Darroch
Browse files

rename routines from worker MPM to match normal MPM naming


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@464973 13f79535-47bb-0310-9956-ffa450edef68
parent 47d775ec
Loading
Loading
Loading
Loading
+5 −5
Changes for server/mpm/experimental/event/event.c: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -216,7 +216,7 @@ static ap_pod_t *pod;

server_rec *ap_server_conf;

/* The worker MPM respects a couple of runtime flags that can aid
/* The event MPM respects a couple of runtime flags that can aid
 * in debugging. Setting the -DNO_DETACH flag will prevent the root process
 * from detaching from its controlling terminal. Additionally, setting
 * the -DONE_PROCESS flag (which implies -DNO_DETACH) will get you the
@@ -2130,7 +2130,7 @@ int ap_mpm_run(apr_pool_t * _pconf, apr_pool_t * plog, server_rec * s)
/* This really should be a post_config hook, but the error log is already
 * redirected by that point, so we need to do this in the open_logs phase.
 */
static int worker_open_logs(apr_pool_t * p, apr_pool_t * plog,
static int event_open_logs(apr_pool_t * p, apr_pool_t * plog,
                           apr_pool_t * ptemp, server_rec * s)
{
    static int restart_num = 0;
@@ -2165,7 +2165,7 @@ static int worker_open_logs(apr_pool_t * p, apr_pool_t * plog,
    return OK;
}

static int worker_pre_config(apr_pool_t * pconf, apr_pool_t * plog,
static int event_pre_config(apr_pool_t * pconf, apr_pool_t * plog,
                            apr_pool_t * ptemp)
{
    static int restart_num = 0;
@@ -2480,11 +2480,11 @@ static void event_hooks(apr_pool_t * p)
    static const char *const aszSucc[] = { "core.c", NULL };
    one_process = 0;

    ap_hook_open_logs(worker_open_logs, NULL, aszSucc, APR_HOOK_REALLY_FIRST);
    ap_hook_open_logs(event_open_logs, NULL, aszSucc, APR_HOOK_REALLY_FIRST);
    /* we need to set the MPM state before other pre-config hooks use MPM query
     * to retrieve it, so register as REALLY_FIRST
     */
    ap_hook_pre_config(worker_pre_config, NULL, NULL, APR_HOOK_REALLY_FIRST);
    ap_hook_pre_config(event_pre_config, NULL, NULL, APR_HOOK_REALLY_FIRST);
    ap_hook_check_config(event_check_config, NULL, NULL, APR_HOOK_MIDDLE);
}