diff options
Diffstat (limited to 'modules/ssl/ssl_scache_shmcb.c')
-rw-r--r-- | modules/ssl/ssl_scache_shmcb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/ssl/ssl_scache_shmcb.c b/modules/ssl/ssl_scache_shmcb.c index ee02a407ec..a23aa0214f 100644 --- a/modules/ssl/ssl_scache_shmcb.c +++ b/modules/ssl/ssl_scache_shmcb.c @@ -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, |