httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: How to detect the mpm used via apxs?
Date Sat, 19 Aug 2006 17:21:54 GMT
Mladen Turk wrote:
> Randy Kobes wrote:
>>>>
>>>>> 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?
>>
>> /path/to/apxs -q MPM_NAME
> 
> That was exactly what I needed.

Well, that wouldn't exactly tell you that 'classic' mpm works exactly
(rather than very close to) prefork.  Anyone can write an mpm.

ap_mpm_query() was made to answer such questions, and creates you a module
if you test at run-time that will load in either an unthreaded or threaded,
forked or not forked server.

Mime
View raw message