Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 46396 invoked from network); 13 Oct 2006 16:23:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2006 16:23:12 -0000 Received: (qmail 99987 invoked by uid 500); 13 Oct 2006 16:23:11 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 99965 invoked by uid 500); 13 Oct 2006 16:23:11 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 99956 invoked by uid 99); 13 Oct 2006 16:23:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 09:23:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rhg@marxmeier.com designates 194.64.71.85 as permitted sender) Received: from [194.64.71.85] (HELO team.marxmeier.com) (194.64.71.85) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 09:23:10 -0700 Received: from [194.64.71.104] (rhg-lx.marxmeier.com [194.64.71.104]) by team.marxmeier.com (Postfix) with ESMTP id 19CBACEADA for ; Fri, 13 Oct 2006 18:22:49 +0200 (CEST) Message-ID: <452FBD58.2030608@marxmeier.com> Date: Fri, 13 Oct 2006 18:22:48 +0200 From: Roland Genske Organization: Marxmeier Software AG User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: How to detect at runtime if this is a prefork or threaded server? References: <452FBA5D.8010408@marxmeier.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Sander, thank you very much. This is what I needed to know :-) Roland Sander Temme wrote: > > 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