Re: apr_pool_cleanup_register question..
At 10:15 AM 3/27/2004, Esteban Pizzini wrote: Hi, I have add this to post_config handler: apr_pool_cleanup_register(p, NULL, module_clean_up, apr_pool_cleanup_null); because I want to know when Apache is shutting down to do some things in my module... It works ok when apache shutdown, but it´s called when it starts too... :( I think this happens because apr_pool_cleanup_register registers functions to be called when a pool is cleared or destroyed, so when apache start I suppose that the pool is cleared.. is there a way to get my function called only when apache shutdown??? Well if you backtraced to the process pool yes. However a dynamic module is loaded, unloaded and reloaded. It's unloaded again before the process pool cleanups are invoked. so short answer - you don't want it to behave as you described. Bill
Re: apr_pool_cleanup_register question..
--- William A. Rowe, Jr. [EMAIL PROTECTED] escribió: At 10:15 AM 3/27/2004, Esteban Pizzini wrote: Hi, I have add this to post_config handler: apr_pool_cleanup_register(p, NULL, module_clean_up, apr_pool_cleanup_null); because I want to know when Apache is shutting down to do some things in my module... It works ok when apache shutdown, but it´s called when it starts too... :( I think this happens because apr_pool_cleanup_register registers functions to be called when a pool is cleared or destroyed, so when apache start I suppose that the pool is cleared.. is there a way to get my function called only when apache shutdown??? Well if you backtraced to the process pool yes. However a dynamic module is loaded, unloaded and reloaded. It's unloaded again before the process pool cleanups are invoked. so short answer - you don't want it to behave as you described. so, what should I use to call my function only when apache shutdown??? which is the best way to do that?? Thank you, EP Bill Los mejores usados y las más tentadoras ofertas de 0km están en Yahoo! Autos. Comprá o vendé tu auto en http://autos.yahoo.com.ar
apr_pool_cleanup_register question..
Hi, I have add this to post_config handler: apr_pool_cleanup_register(p, NULL, module_clean_up, apr_pool_cleanup_null); because I want to know when Apache is shutting down to do some things in my module... It works ok when apache shutdown, but its called when it starts too... :( I think this happens because apr_pool_cleanup_register registers functions to be called when a pool is cleared or destroyed, so when apache start I suppose that the pool is cleared.. is there a way to get my function called only when apache shutdown??? Thank you! EP