httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1540051 - /httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c
Date Fri, 08 Nov 2013 14:30:09 GMT
Author: jim
Date: Fri Nov  8 14:30:08 2013
New Revision: 1540051

URL: http://svn.apache.org/r1540051
Log:
Ensure that the file-based shm file is removed...

Modified:
    httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c

Modified: httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c?rev=1540051&r1=1540050&r2=1540051&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c (original)
+++ httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c Fri Nov  8 14:30:08 2013
@@ -251,7 +251,12 @@ static apr_status_t cleanup_slotmem(void
                 store_slotmem(next);
             }
             if (next->fbased) {
+                const char *name;
                 apr_shm_remove(next->name, next->gpool);
+                name = slotmem_filename(next->gpool, next->name, 0);
+                if (name) {
+                    apr_file_remove(name, next->gpool);
+                }
             }
             apr_shm_destroy((apr_shm_t *)next->shm);
             next = next->next;



Mime
View raw message