Mladen Turk wrote:

Jean-frederic Clere wrote:

Hi,

I am trying to get the slotmem persistent (because for the moment it didn't persist even a graceful restart).
So I have a question:
- Is there a way to have a pool in a module that will only be cleaned up when httpd stops?


I suppose you should do that like its done for scoreboard,
by adding a hook to core.c

ap_hook_pre_mpm(ap_create_scoreboard, NULL, NULL, APR_HOOK_MIDDLE);

Not easy: once I have prevented the cleanup I have to find back the shared memory because the module has been unloaded and reloaded.

Cheers

Jean-Frederic



Regards,
Mladen.



Reply via email to