httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <>
Subject Re: Help: How to call function on Apache quitA
Date Wed, 09 Jan 2008 17:51:13 GMT
Erik Lotspeich wrote:
> I continued some testing and it seems that the pool cleanup mechanism does not 
> work.

Of course, it does.

>  Here's my cleanup register call:
> 	apr_pool_cleanup_register(s->process->pool, mydata, proc_cleanup,
> 				  apr_pool_cleanup_null);
> My cleanup function, proc_cleanup() never gets called when I quit Apache.

It does (look for a core file ;-)

Your *loadable* module doesn't survive to the end of the proc pool
because it's codepages were already unloaded.  Be careful.

View raw message