Solved

An thread exit hook in Apache plugin?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what is this linux system is? 16 117
PHP Error Settings 12 78
incorrect file reading in bash 7 81
Why Xampp showing MySQL as Maria DB on Welcome Page ? 8 46
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 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

13 Experts available now in Live!

Get 1:1 Help Now