Re: [users@httpd] How to use shared memory btw mpm workers in custom module

2014-12-04 Thread nik600
ok, i've understand where is the problem: if i have a directive configuration (ie): static const command_rec directives[] = { AP_INIT_TAKE1(KcacheEnabled, kcache_set_enabled, NULL, RSRC_CONF, KcacheEnabled must have Off or On value), { NULL } }; And the apache config has the parameter

Re: [users@httpd] How to use shared memory btw mpm workers in custom module

2014-12-03 Thread nik600
i'm using 2.2.x i've implemented a shared memory segment using apr_shm_* functions but i've noticed that if i access to this segment in ap_hook_handler i can see it and operate with it, but in ap_hook_translate_name the pointer to the shm segment is null. Any idea or suggestion? Thanks

[users@httpd] How to use shared memory btw mpm workers in custom module

2014-11-25 Thread nik600
Hi I've implemented a custom module to handle some translate hooks. I'd like to add some stats info so i need some shared memory between all the workers. Can you point me to the right resources/documentation/example about it? Basically i'd like to increment some counters and then show them if

Re: [users@httpd] How to use shared memory btw mpm workers in custom module

2014-11-25 Thread Eric Covener
On Tue, Nov 25, 2014 at 2:41 PM, nik600 nik...@gmail.com wrote: Hi I've implemented a custom module to handle some translate hooks. I'd like to add some stats info so i need some shared memory between all the workers. Can you point me to the right resources/documentation/example about it?