You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1997/01/16 19:00:48 UTC

[BUG]: "Modules init function called twice ?" on SunOS 4.x (fwd)


---------- Forwarded message ----------
Date: Thu Jan 16 2:05:39 1997
From: plc@lexem.fr
To: apache-bugs%apache.org@organic.com
Subject: [BUG]: "Modules init function called twice ?" on SunOS 4.x

Submitter: plc@lexem.fr
Operating system: SunOS 4.x, version: 
Version of Apache Used: 1.2b4
Extra Modules used: One module under development
URL exhibiting problem: 

Symptoms:
--
We are developping a module for apache. As a 
startup I made a template module with server_create,
option_handler, init function... But these function are
called twice !
Is it a standard behavior ? 
--

Backtrace:
--

--



Re: [BUG]: "Modules init function called twice ?" on SunOS 4.x (fwd)

Posted by Alexei Kosut <ak...@nueva.pvt.k12.ca.us>.
On Thu, 16 Jan 1997, plc@lexem.fr wrote:

> We are developping a module for apache. As a 
> startup I made a template module with server_create,
> option_handler, init function... But these function are
> called twice !
> Is it a standard behavior ? 

Yes. Apache reads the config files twice upon startup. This is normal
behavior. It reads them once to determine the actual location of the
configuration files (which can be changed by the config file), then
again to actually load in the configuration.

A module needs to be able to handle being configured multiple times
anyway, since when the server is restarted (send a HUP signal), it
will run through configuration again.

Thanks for using Apache!

-- 
________________________________________________________________________
Alexei Kosut <ak...@nueva.pvt.k12.ca.us>      The Apache HTTP Server
URL: http://www.nueva.pvt.k12.ca.us/~akosut/   http://www.apache.org/