]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_scache_shmcb.c (ssl_scahe_shmcb_init): If anonymous
authorJoe Orton <jorton@apache.org>
Wed, 22 Sep 2004 15:32:09 +0000 (15:32 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 22 Sep 2004 15:32:09 +0000 (15:32 +0000)
shm is not supported, always remove the named segment first to cope
with unclean shutdowns.

PR: 21335 (continued)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105249 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_scache_shmcb.c

index ee02a407ec35d212136a01c53f6f1cddaff18453..a23aa0214fb5f6fc461883d02bef100704886fc2 100644 (file)
@@ -345,6 +345,10 @@ void ssl_scache_shmcb_init(server_rec *s, apr_pool_t *p)
                         NULL, mc->pPool);
     
     if (APR_STATUS_IS_ENOTIMPL(rv)) {
+        /* For a name-based segment, remove it first in case of a
+         * previous unclean shutdown. */
+        apr_shm_remove(mc->szSessionCacheDataFile, mc->pPool);
+        
         rv = apr_shm_create(&(mc->pSessionCacheDataMM), 
                             mc->nSessionCacheDataSize, 
                             mc->szSessionCacheDataFile,