- get rid of optreset... screw -D, use environment variables ONE_PROCESS,
SHOW_HOOKS, DUMP_VHOSTS, ... at least it builds this way :)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83512
13f79535-47bb-0310-9956-
ffa450edef68
API_VAR_EXPORT module echo_module = {
STANDARD20_MODULE_STUFF,
- NULL, /* pre_command_line */
NULL, /* pre_config */
NULL, /* post_config */
NULL, /* open_logs */
return 0;
}
-static void dexter_pre_command_line(pool *pcommands)
+static void dexter_hooks(void)
{
INIT_SIGLIST()
one_process = 0;
{
static int restart_num = 0;
- one_process = ap_exists_config_define("ONE_PROCESS");
+ one_process = getenv("ONE_PROCESS");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
module MODULE_VAR_EXPORT mpm_dexter_module = {
STANDARD20_MODULE_STUFF,
- dexter_pre_command_line, /* pre_command_line */
dexter_pre_config, /* pre_config */
NULL, /* post_config */
NULL, /* open_logs */
NULL, /* handlers */
NULL, /* check auth */
NULL, /* check access */
- NULL /* register hooks */
+ dexter_hooks /* register_hooks */
};
/* force Expat to be linked into the server executable */
return 0;
}
-static void mpmt_pthread_pre_command_line(pool *pcommands)
+static void mpmt_pthread_hooks(void)
{
INIT_SIGLIST()
one_process = 0;
{
static int restart_num = 0;
- one_process = ap_exists_config_define("ONE_PROCESS");
+ one_process = getenv("ONE_PROCESS");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
module MODULE_VAR_EXPORT mpm_mpmt_pthread_module = {
STANDARD20_MODULE_STUFF,
- mpmt_pthread_pre_command_line, /* pre_command_line */
mpmt_pthread_pre_config, /* pre_config */
NULL, /* post_config */
NULL, /* open_logs */
NULL, /* handlers */
NULL, /* check auth */
NULL, /* check access */
- NULL /* register hooks */
+ mpmt_pthread_hooks /* register_hooks */
};
/* force Expat to be linked into the server executable */
return 0;
}
-static void prefork_pre_command_line(pool *pcommands)
+static void prefork_hooks(void)
{
INIT_SIGLIST();
#ifdef AUX3
{
static int restart_num = 0;
- one_process = ap_exists_config_define("ONE_PROCESS");
+ one_process = getenv("ONE_PROCESS");
/* sigh, want this only the second time around */
if (restart_num++ == 1) {
module MODULE_VAR_EXPORT mpm_prefork_module = {
STANDARD20_MODULE_STUFF,
- prefork_pre_command_line, /* pre_command_line */
prefork_pre_config, /* pre_config */
NULL, /* post_config */
NULL, /* open_logs */
NULL, /* handlers */
NULL, /* check auth */
NULL, /* check access */
- NULL /* register hooks */
+ prefork_hooks, /* register hooks */
};
return 0;
}
-static void spmt_os2_pre_command_line(pool *pcommands)
+static void spmt_os2_hooks(void)
{
INIT_SIGLIST();
/* TODO: set one_process properly */ one_process = 0;
static void spmt_os2_pre_config(pool *pconf, pool *plog, pool *ptemp)
{
- one_process = ap_exists_config_define("ONE_PROCESS");
+ one_process = getenv("ONE_PROCESS");
is_graceful = 0;
ap_listen_pre_config();
module MODULE_VAR_EXPORT mpm_spmt_os2_module = {
STANDARD20_MODULE_STUFF,
- spmt_os2_pre_command_line, /* pre_command_line */
spmt_os2_pre_config, /* pre_config */
NULL, /* post_config */
NULL, /* open_logs */
NULL, /* check access */
NULL, /* type_checker */
NULL, /* pre-run fixups */
- NULL /* register hooks */
+ spmt_os2_hooks, /* register_hooks */
};