Re: ap_hook_child_init

2009-07-26 Thread Andrej van der Zee
Hi,

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

Yes of course, thank you.

Cheers,
Andrej


Re: ap_hook_child_init

2009-07-26 Thread Eric Covener
On Sun, Jul 26, 2009 at 9:36 PM, Andrej van der
Zee 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
cove...@gmail.com


ap_hook_child_init

2009-07-26 Thread Andrej van der Zee
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?

Thank you,
Andrej