Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 45295 invoked from network); 13 Oct 2006 16:18:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2006 16:18:01 -0000 Received: (qmail 91977 invoked by uid 500); 13 Oct 2006 16:18:01 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 91831 invoked by uid 500); 13 Oct 2006 16:18:00 -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 91822 invoked by uid 99); 13 Oct 2006 16:18:00 -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:18:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [65.99.219.155] (HELO haxent.com) (65.99.219.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 09:17:57 -0700 Received: from [192.168.200.205] (unknown [201.21.190.61]) by haxent.com (Postfix) with ESMTP id DE28A3089F for ; Fri, 13 Oct 2006 13:17:35 -0300 (BRT) Message-ID: <452FBC1D.30701@haxent.com.br> Date: Fri, 13 Oct 2006 13:17:33 -0300 From: Davi Arnaut 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: <452FBA5D.8010408@marxmeier.com> Content-Type: text/plain; charset=ISO-8859-1 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 Roland Genske wrote: > Hello all, > > 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. ap_mpm_query() with AP_MPMQ_IS_FORKED or AP_MPMQ_IS_THREADED. -- Davi Arnaut