]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
change the preprocessor define ap_accept_mutex_type to upper case
authorJeff Trawick <trawick@apache.org>
Mon, 8 Feb 2010 16:59:45 +0000 (16:59 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 8 Feb 2010 16:59:45 +0000 (16:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@907723 13f79535-47bb-0310-9956-ffa450edef68

include/mpm_common.h
server/mpm/prefork/prefork.c
server/mpm/worker/worker.c

index a12d6d0233938aba9f70ca8df2d5106361cb37c3..ebca2b766ff63d7b2b0a051090aded9a904b9426 100644 (file)
@@ -330,7 +330,7 @@ AP_DECLARE_HOOK(const char *,mpm_get_name,(void))
 /* mutex type string for accept mutex, if any; MPMs should use the
  * same mutex type for ease of configuration
  */
-#define ap_accept_mutex_type "mpm-accept"
+#define AP_ACCEPT_MUTEX_TYPE "mpm-accept"
 
 #ifdef __cplusplus
 }
index c1e0c1412f1154e7ee4e3660f68fc4746c8933e9..56496cea565b42b2d2d7091b888b4b57e57d8e67 100644 (file)
@@ -915,7 +915,7 @@ static int prefork_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
     ap_log_pid(pconf, ap_pid_fname);
 
     /* Initialize cross-process accept lock */
-    rv = ap_proc_mutex_create(&accept_mutex, ap_accept_mutex_type, NULL, s,
+    rv = ap_proc_mutex_create(&accept_mutex, AP_ACCEPT_MUTEX_TYPE, NULL, s,
                               _pconf, 0);
     if (rv != APR_SUCCESS) {
         mpm_state = AP_MPMQ_STOPPING;
@@ -1268,7 +1268,7 @@ static int prefork_pre_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp
         foreground = ap_exists_config_define("FOREGROUND");
     }
 
-    ap_mutex_register(p, ap_accept_mutex_type, NULL, APR_LOCK_DEFAULT, 0);
+    ap_mutex_register(p, AP_ACCEPT_MUTEX_TYPE, NULL, APR_LOCK_DEFAULT, 0);
 
     /* sigh, want this only the second time around */
     retained = ap_retained_data_get(userdata_key);
index d633ed1bdeaa97ee417b058bfe32f5e2b3b768ee..052da59fff2fc72aede620dbe946ef9afcb9b4d5 100644 (file)
@@ -1707,7 +1707,7 @@ static int worker_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
     ap_log_pid(pconf, ap_pid_fname);
 
     /* Initialize cross-process accept lock */
-    rv = ap_proc_mutex_create(&accept_mutex, ap_accept_mutex_type, NULL, s,
+    rv = ap_proc_mutex_create(&accept_mutex, AP_ACCEPT_MUTEX_TYPE, NULL, s,
                               _pconf, 0);
     if (rv != APR_SUCCESS) {
         mpm_state = AP_MPMQ_STOPPING;
@@ -1950,7 +1950,7 @@ static int worker_pre_config(apr_pool_t *pconf, apr_pool_t *plog,
         foreground = ap_exists_config_define("FOREGROUND");
     }
 
-    ap_mutex_register(pconf, ap_accept_mutex_type, NULL, APR_LOCK_DEFAULT, 0);
+    ap_mutex_register(pconf, AP_ACCEPT_MUTEX_TYPE, NULL, APR_LOCK_DEFAULT, 0);
 
     /* sigh, want this only the second time around */
     retained = ap_retained_data_get(userdata_key);