httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: [PATCH] Implement -k option for httpd
Date Fri, 17 May 2002 19:56:42 GMT
"Allan Edwards" <ake@meepzor.com> writes:

> > I'm not going to finish it because:
> > 
> > a) I'm not really sure what to do on Win32.
> 
> main.c(617) : error C2065: 'SIGHUP' : undeclared identifier
> main.c(620) : error C2065: 'AP_SIG_GRACEFUL' : undeclared identifier
> main.c(628) : warning C4013: 'kill' undefined; assuming extern returning int
> Error executing cl.exe.
> 
> Maybe the best thing to do is follow the Windows model.
> The shutdown/restart etc. processing is handled by the mpm
> (on the rewrite_args hook), which is probably the 
> logical place to do this sort of thing.

Certainly the MPM (or maybe os/foo code) needs to be involved...

Doesn't the new function need to be done before we hit ap_mpm_run()?
If main() doesn't know what's going on then how would it work?

Maybe MPMs that want to support this need to define functions like

  is-server-running ("-k start" would use this)
  signal-server     ("-k restart|graceful|stop" would use this)

I guess I'm leaning toward having main() in control, as with Justin's
initial patch.

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...

Mime
View raw message