Solved

An thread exit hook in Apache plugin?

Posted on 2009-07-16
2
347 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Issues with Ports in Linux (Hyper-V Guest) 2 104
Logs to delete in Windows VCenter server ? 11 758
Configure a Local PHP Interpreter for Phpstorm 2 329
linux 13 75
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 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