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.

Reply via email to