Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 53534 invoked from network); 28 Oct 2008 15:21:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2008 15:21:44 -0000 Received: (qmail 82676 invoked by uid 500); 28 Oct 2008 15:21:48 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 81791 invoked by uid 500); 28 Oct 2008 15:21:46 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 81782 invoked by uid 99); 28 Oct 2008 15:21:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2008 08:21:46 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.229.52.226] (HELO grimnir.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2008 15:20:30 +0000 Received: from grimnir (localhost [127.0.0.1]) by grimnir.webthing.com (Postfix) with ESMTP id 34BB52135 for ; Tue, 28 Oct 2008 15:20:20 +0000 (GMT) Date: Tue, 28 Oct 2008 15:20:18 +0000 From: Nick Kew To: dev@httpd.apache.org Subject: Re: Simple MPM is in trunk Message-ID: <20081028152018.32e19607@grimnir> In-Reply-To: <4906BB73.9040407@force-elite.com> References: <4906BB73.9040407@force-elite.com> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 28 Oct 2008 00:12:51 -0700 Paul Querna wrote: > I've added the Simple MPM to trunk: > https://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/simple/ One central part of interest (simplified): int simple_child_loop(simple_core_t *sc) { simple_setup_workers(sc); simple_setup_listeners(sc); simple_setup_privs(sc); simple_run_loop(sc); } For my immediate purposes, I'd like to see simple_setup_privs replaced by a hook (which is essentially the old child_init hook). Then add back in a mod_unixd to get the classic model of *X MPMs, and whatever is the equivalent on other platforms. But is there any reason we shouldn't replace *each of* the above functions with a hook? -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/