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