]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
- get rid of pre_command_line_hook ... use register_hooks for this purpose
authordgaudet <dgaudet@unknown>
Tue, 27 Jul 1999 12:05:08 +0000 (12:05 +0000)
committerdgaudet <dgaudet@unknown>
Tue, 27 Jul 1999 12:05:08 +0000 (12:05 +0000)
- 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

modules/echo/mod_echo.c
server/mpm/dexter/dexter.c
server/mpm/mpmt_pthread/mpmt_pthread.c
server/mpm/prefork/prefork.c
server/mpm/spmt_os2/spmt_os2.c

index 3ec7423a34a6b16ea9c9b4f8f15c25f997782270..a4f2b3f41988cf5fd8c2bf542cc42731011667f7 100644 (file)
@@ -63,7 +63,6 @@ static void register_hooks()
 
 API_VAR_EXPORT module echo_module = {
     STANDARD20_MODULE_STUFF,
-    NULL,                      /* pre_command_line */
     NULL,                      /* pre_config */
     NULL,                      /* post_config */
     NULL,                      /* open_logs */
index 35a19ce7a72439160872fe4626e05d519141c865..a9077d321724122ea0cc6360e50cd11641134bba 100644 (file)
@@ -1443,7 +1443,7 @@ int ap_mpm_run(pool *_pconf, pool *plog, server_rec *s)
     return 0;
 }
 
-static void dexter_pre_command_line(pool *pcommands)
+static void dexter_hooks(void)
 {
     INIT_SIGLIST()
     one_process = 0;
@@ -1453,7 +1453,7 @@ static void dexter_pre_config(pool *pconf, pool *plog, pool *ptemp)
 {
     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) {
@@ -1691,7 +1691,6 @@ LISTEN_COMMANDS
 
 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 */
@@ -1704,7 +1703,7 @@ module MODULE_VAR_EXPORT mpm_dexter_module = {
     NULL,                      /* handlers */
     NULL,                      /* check auth */
     NULL,                      /* check access */
-    NULL                       /* register hooks */
+    dexter_hooks               /* register_hooks */
 };
 
 /* force Expat to be linked into the server executable */
index 942987fc86a0d90f3a2e2fbf17ae9b0c758e925a..50b47215a1970ba53535eb98e40287f5c2e483a1 100644 (file)
@@ -1510,7 +1510,7 @@ int ap_mpm_run(pool *_pconf, pool *plog, server_rec *s)
     return 0;
 }
 
-static void mpmt_pthread_pre_command_line(pool *pcommands)
+static void mpmt_pthread_hooks(void)
 {
     INIT_SIGLIST()
     one_process = 0;
@@ -1520,7 +1520,7 @@ static void mpmt_pthread_pre_config(pool *pconf, pool *plog, pool *ptemp)
 {
     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) {
@@ -1764,7 +1764,6 @@ LISTEN_COMMANDS
 
 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 */
@@ -1777,7 +1776,7 @@ module MODULE_VAR_EXPORT mpm_mpmt_pthread_module = {
     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 */
index 57230a7bef198cdd58995e5938c162a5896f138f..1d91bdc5d38638f9aabb8f71fa89129f3f627852 100644 (file)
@@ -2859,7 +2859,7 @@ int ap_mpm_run(pool *_pconf, pool *plog, server_rec *s)
     return 0;
 }
 
-static void prefork_pre_command_line(pool *pcommands)
+static void prefork_hooks(void)
 {
     INIT_SIGLIST();
 #ifdef AUX3
@@ -2872,7 +2872,7 @@ static void prefork_pre_config(pool *pconf, pool *plog, pool *ptemp)
 {
     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) {
@@ -3083,7 +3083,6 @@ LISTEN_COMMANDS
 
 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 */
@@ -3096,5 +3095,5 @@ module MODULE_VAR_EXPORT mpm_prefork_module = {
     NULL,                      /* handlers */
     NULL,                      /* check auth */
     NULL,                      /* check access */
-    NULL                       /* register hooks */
+    prefork_hooks,             /* register hooks */
 };
index ffcf030cc74b067e4a0951b978d6799d633d52dd..ae477809046e55b87adb543f054debaa5954452d 100644 (file)
@@ -1603,7 +1603,7 @@ int ap_mpm_run(pool *_pconf, pool *plog, server_rec *s)
     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;
@@ -1611,7 +1611,7 @@ static void spmt_os2_pre_command_line(pool *pcommands)
 
 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();
@@ -1792,7 +1792,6 @@ LISTEN_COMMANDS
 
 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 */
@@ -1807,5 +1806,5 @@ module MODULE_VAR_EXPORT mpm_spmt_os2_module = {
     NULL,                      /* check access */
     NULL,                      /* type_checker */
     NULL,                      /* pre-run fixups */
-    NULL                       /* register hooks */
+    spmt_os2_hooks,            /* register_hooks */
 };