?
Solved

An thread exit hook in Apache plugin?

Posted on 2009-07-16
2
Medium Priority
?
381 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

770 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