You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rj...@apache.org on 2009/01/03 01:42:53 UTC
svn commit: r730879 - /httpd/httpd/trunk/modules/mem/mod_sharedmem.c
Author: rjung
Date: Fri Jan 2 16:42:53 2009
New Revision: 730879
URL: http://svn.apache.org/viewvc?rev=730879&view=rev
Log:
Need to close temporary file before using it
for global mutex (at least on Solaris).
Modified:
httpd/httpd/trunk/modules/mem/mod_sharedmem.c
Modified: httpd/httpd/trunk/modules/mem/mod_sharedmem.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mem/mod_sharedmem.c?rev=730879&r1=730878&r2=730879&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mem/mod_sharedmem.c (original)
+++ httpd/httpd/trunk/modules/mem/mod_sharedmem.c Fri Jan 2 16:42:53 2009
@@ -432,6 +432,13 @@
return rv;
}
+ rv = apr_file_close(fmutex);
+ if (rv != APR_SUCCESS) {
+ ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
+ "sharedmem: could not close mutex file");
+ return rv;
+ }
+
rv = apr_global_mutex_create(&smutex,
mutex_fname, APR_LOCK_DEFAULT, p);
if (rv != APR_SUCCESS) {