[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

An thread exit hook in Apache plugin?

Posted on 2009-07-16
2
Medium Priority
?
393 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
caterham_www earned 2000 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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…
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

656 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