"Allan Edwards" <[EMAIL PROTECTED]> 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 | [EMAIL PROTECTED]
Born in Roswell... married an alien...