]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Update with latest hook additions.
authorManoj Kasichainula <manoj@apache.org>
Tue, 27 Jul 1999 23:54:24 +0000 (23:54 +0000)
committerManoj Kasichainula <manoj@apache.org>
Tue, 27 Jul 1999 23:54:24 +0000 (23:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83517 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/dexter/dexter.c
server/mpm/mpmt_pthread/mpmt_pthread.c

index a9077d321724122ea0cc6360e50cd11641134bba..65d0452e8fbabee70e7b2e08beda5626bc115395 100644 (file)
@@ -1443,12 +1443,6 @@ int ap_mpm_run(pool *_pconf, pool *plog, server_rec *s)
     return 0;
 }
 
-static void dexter_hooks(void)
-{
-    INIT_SIGLIST()
-    one_process = 0;
-}
-
 static void dexter_pre_config(pool *pconf, pool *plog, pool *ptemp)
 {
     static int restart_num = 0;
@@ -1480,6 +1474,12 @@ static void dexter_pre_config(pool *pconf, pool *plog, pool *ptemp)
     ap_cpystrn(ap_coredump_dir, ap_server_root, sizeof(ap_coredump_dir));
 }
 
+static void dexter_hooks(void)
+{
+    ap_hook_pre_config(dexter_pre_config, NULL, NULL, HOOK_MIDDLE);
+    INIT_SIGLIST()
+    one_process = 0;
+}
 
 static const char *set_pidfile(cmd_parms *cmd, void *dummy, char *arg) 
 {
@@ -1691,7 +1691,6 @@ LISTEN_COMMANDS
 
 module MODULE_VAR_EXPORT mpm_dexter_module = {
     STANDARD20_MODULE_STUFF,
-    dexter_pre_config,         /* pre_config */
     NULL,                       /* post_config */
     NULL,                      /* open_logs */
     NULL,                      /* child_init */
index 50b47215a1970ba53535eb98e40287f5c2e483a1..0d4be5819d934e9355a08896efd026e2c1487a7b 100644 (file)
@@ -1510,12 +1510,6 @@ int ap_mpm_run(pool *_pconf, pool *plog, server_rec *s)
     return 0;
 }
 
-static void mpmt_pthread_hooks(void)
-{
-    INIT_SIGLIST()
-    one_process = 0;
-}
-
 static void mpmt_pthread_pre_config(pool *pconf, pool *plog, pool *ptemp)
 {
     static int restart_num = 0;
@@ -1549,6 +1543,13 @@ static void mpmt_pthread_pre_config(pool *pconf, pool *plog, pool *ptemp)
     ap_cpystrn(ap_coredump_dir, ap_server_root, sizeof(ap_coredump_dir));
 }
 
+static void mpmt_pthread_hooks(void)
+{
+    ap_hook_pre_config(mpmt_pthread_pre_config,NULL,NULL,HOOK_MIDDLE);
+    INIT_SIGLIST()
+    one_process = 0;
+}
+
 
 static const char *set_pidfile(cmd_parms *cmd, void *dummy, char *arg) 
 {
@@ -1764,7 +1765,6 @@ LISTEN_COMMANDS
 
 module MODULE_VAR_EXPORT mpm_mpmt_pthread_module = {
     STANDARD20_MODULE_STUFF,
-    mpmt_pthread_pre_config,           /* pre_config */
     NULL,                       /* post_config */
     NULL,                      /* open_logs */
     NULL,                      /* child_init */