]> granicus.if.org Git - apache/commitdiff
Improve helpfulness of error messages when accept mutex has a problem.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 14 Mar 2004 19:08:07 +0000 (19:08 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 14 Mar 2004 19:08:07 +0000 (19:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102957 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c

index 76fdef60eb3db11a5cab55ea6edad194b0dc0211..526c4f6a4639e354c635ae60f0e4199c3f47018b 100644 (file)
@@ -485,7 +485,8 @@ static void child_main(int child_num_arg)
     status = apr_proc_mutex_child_init(&accept_mutex, ap_lock_fname, pchild);
     if (status != APR_SUCCESS) {
         ap_log_error(APLOG_MARK, APLOG_EMERG, status, ap_server_conf,
-                     "Couldn't initialize cross-process lock in child");
+                     "Couldn't initialize cross-process lock in child "
+                     "(%s) (%d)", ap_lock_fname, ap_accept_lock_mech);
         clean_child_exit(APEXIT_CHILDFATAL);
     }
 
@@ -898,7 +899,8 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
                                ap_accept_lock_mech, _pconf);
     if (rv != APR_SUCCESS) {
         ap_log_error(APLOG_MARK, APLOG_EMERG, rv, s,
-                     "Couldn't create accept lock");
+                     "Couldn't create accept lock (%s) (%d)",
+                     ap_lock_fname, ap_accept_lock_mech);
         mpm_state = AP_MPMQ_STOPPING;
         return 1;
     }