Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 22375 invoked by uid 500); 13 Feb 2002 15:22:24 -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: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 22361 invoked from network); 13 Feb 2002 15:22:23 -0000 Date: Wed, 13 Feb 2002 17:26:42 +0100 From: Jacek Prucia To: dev@httpd.apache.org Subject: Re: module init called twice in 1.3 Message-Id: <20020213172642.620df6cd.jacek.prucia@7bulls.com> In-Reply-To: <3C6A7C87.A1457A47@Golux.Com> References: <200202131407.JAA10803@web.turner.com> <3C6A7C87.A1457A47@Golux.Com> Organization: 7bulls.com S.A. X-Mailer: Sylpheed version 0.7.1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 13 Feb 2002 09:47:35 -0500 Rodent of Unusual Size wrote: > Brian Akins wrote: > > > > I've noticed that the module init sometimes gets called twice. Is this > > something I'm doing wrong or is this "normal"? > > This is normal (at least for Apache 1.3). It gets called > once during config parsing, and again after daemonising > and right before children start getting forked. The first > pass is a sort of 'test run'. > > This would probably be better on the module-writers list, > apache-modules@Covalent.Net. Yep, but this question is asked there quite often... I think Ken post: '[apache-modules] First or second pass through init' (which covers this subject in detail) schould be added to 'Apache API notes' or at least FAQ. -- Jacek Prucia 7bulls.com S.A.