You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kutschker <Ma...@blackbox.net> on 2002/06/26 13:12:09 UTC

[PATCH] avoid misleading error on mod_ssl init

Hi!

This patch logs the mutex file on mutex init name only if present to avoid confusion (for the user).

--- ssl_engine_mutex-old.c Mon May 20 20:33:41 2002
+++ ssl_engine_mutex.c Wed Jun 26 12:56:01 2002
@@ -75,9 +75,13 @@

if ((rv = apr_global_mutex_create(&mc->pMutex, mc->szMutexFile,
APR_LOCK_DEFAULT, p)) != APR_SUCCESS) {
- ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
- "Cannot create SSLMutex file `%s'",
- mc->szMutexFile);
+ if (mc->szMutexFile)
+ ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
+ "Cannot create SSLMutex file `%s'",
+ mc->szMutexFile);
+ else
+ ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
+ "Cannot create SSLMutex");
return FALSE;
}

Masi