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:
 * See also http://www.clove.org/~aaron/presentations/apachecon2002/

------------------------------------------------------------------------------
   * On restart and graceful restart, the module is unloaded and reloaded/init, 
and the post_config hook is called one time.
   * On graceful restart, new children processes may be running on the new 
configuration while old children on the old configuration are still serving a 
request.
  
- == 1st and next post_config calls ==
+ == 1st and next post_config hook calls ==
  If we want to create mutexes, shared memory... only once, we have to execute 
the post_config hook body only once, and we have to set a flag on 1st execution 
and read it on 2nd.
  
   * Example from http://www.codemass.com/mod_shm_counter/
+  * See also http://www.clove.org/~aaron/presentations/apachecon2002/
+ 
  {{{
  static int shm_counter_post_config(apr_pool_t *pconf, apr_pool_t *plog,
                                     apr_pool_t *ptemp, server_rec *s)
@@ -44, +46 @@

  
      /* If we made it this far, we can safely initialize the module */}}}
  
- === post_config call by children processes ===
+ === post_config hook call by children processes ===
  On WinNT MPM, the post_config hook is also called by the children processes.
  
  To know if we are in a child, we can check the AP_PARENT_PID environment 
variable: it is only set in children on the WinNT MPM.

Reply via email to