Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The following page has been changed by MarcMongenet:
http://wiki.apache.org/httpd/ModuleLife

The comment on the change is:
Preventing module unloading

------------------------------------------------------------------------------
   * If the child processes are not forked, they repeat the startup, with 2 
configurations parsing.
   * On restart and gracefull restart, the module is unloaded and reloaded/init
  
+ == 1st and next post_config calls ==
  In the post_config hook, we use apr_pool_userdata_get/set to detect if we are 
called for the first time or not. Using a static variable does not work because 
the module may be unloaded/reloaded between the two calls.
  
  {{{
@@ -27, +28 @@

      }
  }}}
  
+ == Preventing module unloading ==
+ To prevent module unloading, there is a ''sick and twisted hack'' (wrowe 
dixit): "the evil method is to use apr_dso_load() against the process pool to 
load it 'permanently'".
+ 

Reply via email to