httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: ap_hook_child_init
Date Mon, 27 Jul 2009 01:59:59 GMT
On Sun, Jul 26, 2009 at 9:36 PM, Andrej van der
Zee<andrejvanderzee@gmail.com> wrote:
> Hi,
>
> I have an Apache module for mpm-prefork that runs a background thread.
> The thread is initialized in ap_hook_child_init() which works just
> fine. But, I have to finish the thread neatly when the process exits.
> How can I force this? I could not find any hook-method that is called
> before the process is exited. How can I force the thread to be cleanup
> up neatly, preferably without breaking into the Apache core?

Register a cleanup on the pool passed to your child_init function.

-- 
Eric Covener
covener@gmail.com

Mime
View raw message