mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Another hook (I won't be upset if someone else wants to do some!).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83516 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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 */
|
||||
|
@@ -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 */
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user