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
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,