httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Hulbert <gwhulb...@eol.ca>
Subject Re: How to detect the mpm used via apxs?
Date Sat, 19 Aug 2006 15:04:51 GMT
On Sat, 2006-19-08 at 10:18 -0300, Davi Arnaut wrote:
> Em 19/08/2006, às 07:55, Mladen Turk escreveu:
> 
> > Hi,
> >
> > Anyone knows how to detect the mpm used so that
> > module can be build with/without threading code
> > depending if the mpm is prefork or any other threaded
> > one like worker by using apxs?
> 
> Why use apxs ?

or if you've already compiled it ...

$ /usr/sbin/apache2 -V | grep MPM
 -D APACHE_MPM_DIR="server/mpm/worker"


> 
> mpm.h:
> 
> #define WORKER_MPM
> #define MPM_NAME "Worker"

I thought he must already know this ...

> 
> >
> > The only way I can imagine is to parse the stdout from
> > httpd, but IMHO something like
> > apxs -q MPM should do the trick like it does for CFLAGS
> > or INCLUDES.
> >
> > Regards,
> > Mladen.
> 

-- 
--gh



Mime
View raw message