httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r730879 - /httpd/httpd/trunk/modules/mem/mod_sharedmem.c
Date Sat, 03 Jan 2009 00:42:53 GMT
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) {



Mime
View raw message