httpd-wiki-changes mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Httpd Wiki] Update of "ModuleLife" by MarcMongenet
Date Wed, 17 Oct 2007 23:06:30 GMT
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

------------------------------------------------------------------------------
   * On restart and graceful restart, the module is unloaded and reloaded/init, and the post_config
hook is called one time.
  
  == 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.
+ In the post_config hook, we use apr_pool_userdata_get/set on the process pool 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. The process pool is not torn down
between cycles.
  
  {{{
  static int my_module_post_config(apr_pool_t *p, apr_pool_t *plog,

Mime
View raw message