httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Bloom" <...@covalent.net>
Subject RE: Apache 2.0 Numbers
Date Mon, 24 Jun 2002 14:53:59 GMT
> From: Rasmus Lerdorf [mailto:rasmus@apache.org]
> 
> > > > It would be nice
> > > > if there was an apxs flag that would return the MPM type.
> > >
> > > +1
> >
> > There is.  -q will query for any value in config_vars.mk, and
MPM_NAME
> > is in that file.  So `apxs -q MPM_NAME` will return the configured
MPM
> > type.
> 
> Ah right.  Is there a way to check at runtime as well?  I've added a
PHP
> configure check now to the apache2filter sapi module so it will come
up
> non-threaded by default if it sees Apache2-prefork.  Just a bit
worried
> about someone changing their MPM after the fact, so perhaps a runtime
> check is needed as well.

Runtime is harder, but you can just use ap_mpm_query to get the MPMs
characteristics.  This won't give you the MPM name, but it will let you
know if the MPM is threaded or not.

Ryan



Mime
View raw message