Skip to content

Commit

Permalink
Another hook (I won't be upset if someone else wants to do some!).
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83516 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ben Laurie committed Jul 27, 1999
1 parent 7de91d8 commit 973ee50
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion modules/echo/mod_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion server/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
20 changes: 10 additions & 10 deletions server/mpm/prefork/prefork.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 973ee50

Please sign in to comment.