jbossnative-commits(a)lists.jboss.org wrote:
Author: jfrederic.clere(a)jboss.com
Date: 2008-05-30 09:02:54 -0400 (Fri, 30 May 2008)
New Revision: 1643
Modified:
trunk/mod_cluster/native/mod_manager/mod_manager.c
Log:
Arrange the shared memory handling (problem reported by Mladen).
+ apr_pool_userdata_get(&data, userdata_key,
s->process->pool);
+ if (!data) {
+ /* first call do nothing */
+ apr_pool_userdata_set((const void *)1, userdata_key, apr_pool_cleanup_null,
s->process->pool);
You should return from here thought.
+ }
+
The call might come from graceful restart
in which case the tables will already be created.
See how I did it in:
sandbox/aloha/httpd/modules/manager/mm_module.c
Regards
--
^(TM)