httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@opengroup.org>
Subject Re: child_exit?
Date Fri, 25 Jul 1997 20:01:55 GMT
Dean Gaudet <dgaudet@arctic.org> wrote:

> 
> 
> On Fri, 25 Jul 1997, Doug MacEachern wrote:
> 
> > Now that we have the new child_init hook, I think a child_exit hook
> > is in order to give modules a chance to cleanup, etc., instead of just
> > exit'ing in child_main() once we hit max_request_per_child, etc.  I
> > can't recall if this has been discussed before, a simple patch is
> > below for you to consider.  If there are +1s I'll add the NULL slot to
> > the rest of the modules. 
> 
> 
> You should mask USR1 and HUP during child_exit_modules.  

Right, will this do?

#ifdef SIGHUP
    signal (SIGHUP, SIG_IGN);
#endif 
#ifdef SIGUSR1
    signal (SIGUSR1, SIG_IGN);
#endif 

> Documentation
> should include a note that there's absolutely no guarantee that the exit
> function will be called.

I'll add something.

> 
> Did you miss just_die() ? 

yes, let me know if you see others.

> I hope the pconf pool is sane at that point.  I'm worried that a USR1/HUP
> could come in while it's in the middle of a block_alarm() critical
> section...

hmm, not sure about that either.

-Doug

Mime
View raw message