Nick Kew wrote:
On Tue, 28 Oct 2008 00:12:51 -0700
Paul Querna <[EMAIL PROTECTED]> wrote:

I've added the Simple MPM to trunk:
https://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/simple/

One central part of interest (simplified):

int simple_child_loop(simple_core_t *sc)
{
  simple_setup_workers(sc);
  simple_setup_listeners(sc);
  simple_setup_privs(sc);
  simple_run_loop(sc);
}

For my immediate purposes, I'd like to see simple_setup_privs replaced
by a hook (which is essentially the old child_init hook).  Then add
back in a mod_unixd to get the classic model of *X MPMs, and whatever
is the equivalent on other platforms.

But is there any reason we shouldn't replace *each of* the above
functions with a hook?


Yes, my intention as mentioned inside the simple_setup_privs function is to add hooks for things that unixd currently does like chroot and changing user IDs...

I'm not sure about setup_listeners and the like, but my first goal was to get the MPM to a semi-usable state, before going and making everything hookable :-)

Thanks,

Paul

Reply via email to