Alok Agrawal wrote:
> 
> 
> >Number:         498
> >Category:       general
> >Synopsis:       Missing Terminate Stage
> >Confidential:   no
> >Severity:       critical
> >Priority:       medium
> >Responsible:    apache (Apache HTTP Project)
> >State:          open
> >Class:          change-request
> >Submitter-Id:   apache
> >Arrival-Date:   Mon Apr 28 13:50:01 1997
> >Originator:     [EMAIL PROTECTED]
> >Organization:
> apache
> >Release:        All
> >Environment:
> Solaris
> >Description:
> I work at oracle corporation and we are trying to release an adapter that 
> would allow
> users to run the Oracle Application server with Apache as the HTTP listener. 
> We have
> hit upon a major problem that requires your immediate attention. The apache 
> child processes
> don't call any terminate function before exiting, while we require that the 
> oracle module we add to apache 
> calls a terminate function just before the process is going to do an exit in 
> order to release certain 
> distributed resources. This should be a fairly easy fix since apache already 
> has the framework
> to do so. All you need to do is add an extra function pointer in the module 
> structure for the terminate stage and
> call it at all the places in http_main where the child might exit.Please 
> contact me if you have any further questions.

Apache 1.2 is in feature freeze, so there is no chance this will be added to
the next release.

Two things occur to me:

1. You need to deal with abnormal as well as normal termination.

2. atexit().

Cheers,

Ben.

-- 
** Buy "Apache: The Definitive Guide" from http://www.links.org/apache **
Ben Laurie                Phone: +44 (181) 994 6435  Email: [EMAIL PROTECTED]
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author

Reply via email to