httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anurag Gujral <anurag_guj...@yahoo.com>
Subject Re: [users@httpd] function modulename_child_exit in apache 2.0
Date Thu, 13 Nov 2008 20:38:18 GMT
Thanks a lot Tom
Anurag




________________________________
From: Tom Evans <tevans.uk@googlemail.com>
To: users@httpd.apache.org
Cc: Anurag Gujral <anurag_gujral@yahoo.com>
Sent: Thursday, November 13, 2008 6:10:40 AM
Subject: Re: [users@httpd] function modulename_child_exit in apache 2.0

On Thu, 2008-11-13 at 04:49 -0800, Anurag Gujral wrote:
> Hi All,
>             I need to call function modulename_child_exit in apache
> 2.0 to free resources that are allocated in 
> modulename_child_init. How should I  use that function so that it gets
> called only when child dies.
>  
> Plz Comment
>  
> Thanks
> Anurag
> 

When you allocate resources, you should register a cleanup function for
them and tie it to the configuration pool. 
See http://www.apachetutor.org/dev/pools and http://wiki.apache.org/httpd/ModuleLife

Cheers

Tom


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


      
Mime
View raw message