Avoid double free/cleanup by just letting shm/rmm/global_mutex cleanups do
their work on restart/exit.
Set the globals to NULL in initialize_tables() should cleanup_tables() be
called on error.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1883810 13f79535-47bb-0310-9956-
ffa450edef68
/* Create the shared memory segment */
+ client_shm = NULL;
+ client_rmm = NULL;
+ client_lock = NULL;
+ opaque_lock = NULL;
+ client_list = NULL;
+
/*
* Create a unique filename using our pid. This information is
* stashed in the global variable so the children inherit it.
if (initialize_tables(s, p) != OK) {
return !OK;
}
- /* Call cleanup_tables on exit or restart */
- apr_pool_cleanup_register(p, NULL, cleanup_tables, apr_pool_cleanup_null);
#endif /* APR_HAS_SHARED_MEMORY */
return OK;
}