Solved

An thread exit hook in Apache plugin?

Posted on 2009-07-16
2
309 Views
Last Modified: 2012-06-27
Is there any Apache hook that gets called when thread exits (similar to "child_init" hook, but the opposite)?

If not, do you know of a way of achieving such functionality without modifying Apache? I need to do some cleanup of stuff to which I keep pointers in "global" config structure (this is not memory, so don't tell me to use pools).
0
Comment
Question by:GDR-LDE
2 Comments
 
LVL 27

Accepted Solution

by:
caterham_www earned 500 total points
ID: 24874905
Apache 1.3 has a child_exit hook, with apache 2 you're registering a cleanup function via apr_pool_cleanup_register() in a Child_init hook (e.g. mod_log_config); that is the same in therms of functionality.
0
 

Author Closing Comment

by:GDR-LDE
ID: 31604229
Thank you for your answer, it has been very helpful.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now