From: Justin Erenkrantz Date: Sun, 14 Mar 2004 19:08:07 +0000 (+0000) Subject: Improve helpfulness of error messages when accept mutex has a problem. X-Git-Tag: pre_ajp_proxy~535 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fbfdd72cd8815aaf4b41897ec8017e52e1d5a35;p=apache Improve helpfulness of error messages when accept mutex has a problem. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102957 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index 76fdef60eb..526c4f6a46 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -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; }