httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kutschker <Martin.Kutsch...@blackbox.net>
Subject [PATCH] avoid misleading error on mod_ssl init
Date Wed, 26 Jun 2002 11:12:09 GMT
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 

Mime
View raw message