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