httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: cvs commit: apache-2.0/mpm/src/main http_config.c http_main.c
Date Mon, 12 Jul 1999 20:33:55 GMT
Dean Gaudet wrote:
> 
> On Mon, 12 Jul 1999, Ben Laurie wrote:
> 
> > Dean Gaudet wrote:
> > >
> > > On Sun, 11 Jul 1999, Ben Laurie wrote:
> > >
> > > > Well, if I'm going to preserve the original behaviour as much as I can,
> > > > yes. The reason being that hooks are defined early on, but I need
> > > > -DSHOW_HOOKS before they are, but there's also a pre-command-line hook
> > > > that has to come _after_ hooks have been hooked (obviously).
> > >
> > > Maybe the pre_command_line hook shouldn't be there.  I forget exactly why
> > > I wanted it, I think in many ways what I wanted was a hook to initialize
> > > modules just after they first load... in case they have any memory that
> > > needs initializing.
> >
> > You use it in prefork.c (I think) ... if that's all it's for, you could
> > do it in register_hooks?
> 
> Yeah, it just calls INIT_SIGLIST().  Totally -- if register_hooks is
> guaranteed to be called just once for each module as its loaded, before
> anything else in the module is called, then that's just about exactly what
> I was thinking of for pre_command_line.  So just do a name change :)

Hmm. Perhaps I should call register_hooks something more general. OTOH,
perhaps we should keep the two things separate.

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi

Mime
View raw message