diff --git a/modules/echo/mod_echo.c b/modules/echo/mod_echo.c index a4f2b3f419..0ca37a0a1e 100644 --- a/modules/echo/mod_echo.c +++ b/modules/echo/mod_echo.c @@ -63,7 +63,6 @@ static void register_hooks() API_VAR_EXPORT module echo_module = { STANDARD20_MODULE_STUFF, - NULL, /* pre_config */ NULL, /* post_config */ NULL, /* open_logs */ NULL, /* child_init */ diff --git a/server/connection.c b/server/connection.c index c4cff19712..00ea8ab91f 100644 --- a/server/connection.c +++ b/server/connection.c @@ -69,7 +69,7 @@ HOOK_STRUCT( HOOK_LINK(process_connection) ); -IMPLEMENT_VOID_HOOK(pre_connection,(conn_rec *c),(c),RUN_ALL) +IMPLEMENT_VOID_HOOK(pre_connection,(conn_rec *c),(c)) IMPLEMENT_HOOK(int,process_connection,(conn_rec *c),(c),RUN_FIRST,OK,DECLINED) /* TODO: re-implement the lingering close stuff */ diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index ea921a9d9d..371352da99 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -2859,15 +2859,6 @@ int ap_mpm_run(pool *_pconf, pool *plog, server_rec *s) return 0; } -static void prefork_hooks(void) -{ - INIT_SIGLIST(); -#ifdef AUX3 - (void) set42sig(); -#endif - /* TODO: set one_process properly */ one_process = 0; -} - static void prefork_pre_config(pool *pconf, pool *plog, pool *ptemp) { static int restart_num = 0; @@ -2900,6 +2891,16 @@ static void prefork_pre_config(pool *pconf, pool *plog, pool *ptemp) ap_cpystrn(ap_coredump_dir, ap_server_root, sizeof(ap_coredump_dir)); } +static void prefork_hooks(void) +{ + ap_hook_pre_config(prefork_pre_config,NULL,NULL,HOOK_MIDDLE); + INIT_SIGLIST(); +#ifdef AUX3 + (void) set42sig(); +#endif + /* TODO: set one_process properly */ one_process = 0; +} + static const char *set_pidfile(cmd_parms *cmd, void *dummy, char *arg) { const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY); @@ -3083,7 +3084,6 @@ LISTEN_COMMANDS module MODULE_VAR_EXPORT mpm_prefork_module = { STANDARD20_MODULE_STUFF, - prefork_pre_config, /* pre_config */ NULL, /* post_config */ NULL, /* open_logs */ NULL, /* child_init */