httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Temme <scte...@apache.org>
Subject Re: How to detect at runtime if this is a prefork or threaded server?
Date Fri, 13 Oct 2006 16:20:04 GMT

On Oct 13, 2006, at 11:10 AM, Roland Genske wrote:

> is it possible for a module to detect at runtime whether it runs in
> a "prefork" server or in a "worker" (threaded) server? Our module
> must behave differently depending on this.

Check out ap_mpm_query(), defined in ap_mpm.h. It can tell you  
whether you're running in a threaded MPM, a forked one or one that  
does both.

> Or are we required to provide a separate build for each configuration?

I don't think you should need that.

S.

-- 
sctemme@apache.org            http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF



Mime
View raw message