]> granicus.if.org Git - apache/commitdiff
mpm_{prefork,worker}: follow up to r1635521.
authorYann Ylavic <ylavic@apache.org>
Fri, 5 Dec 2014 07:57:57 +0000 (07:57 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 5 Dec 2014 07:57:57 +0000 (07:57 +0000)
Don't crash when there is no accept mutex (one listener => apr_proc_mutex_name(NULL)).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1643179 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c
server/mpm/worker/worker.c

index 260e37666cd853daf2c7b40ed53d8a085ff17ab5..56b2772e52a0038fbc13e710692ab4c4abbcfe0d 100644 (file)
@@ -1037,7 +1037,9 @@ static int prefork_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
     ap_log_common(s);
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(00165)
                 "Accept mutex: %s (default: %s)",
-                apr_proc_mutex_name(all_buckets[0].mutex),
+                (all_buckets[0].mutex)
+                    ? apr_proc_mutex_name(all_buckets[0].mutex)
+                    : "none",
                 apr_proc_mutex_defname());
 
     mpm_state = AP_MPMQ_RUNNING;
index 190bc5ba93c1152170d4276d3318d3b0b888e321..d5fcc77cb5ed5c5e7422f6aff6f584c13fef3609 100644 (file)
@@ -1869,7 +1869,9 @@ static int worker_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
     ap_log_common(s);
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(00294)
                 "Accept mutex: %s (default: %s)",
-                apr_proc_mutex_name(all_buckets[0].mutex),
+                (all_buckets[0].mutex)
+                    ? apr_proc_mutex_name(all_buckets[0].mutex)
+                    : "none",
                 apr_proc_mutex_defname());
     mpm_state = AP_MPMQ_RUNNING;