www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Smirl <jonsm...@mediaone.net>
Subject os-windows/6304: module initialization is called twice form main task
Date Thu, 13 Jul 2000 04:26:02 GMT

>Number:         6304
>Category:       os-windows
>Synopsis:       module initialization is called twice form main task
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Jul 12 21:30:00 PDT 2000
>Originator:     jonsmirl@mediaone.net
>Release:        1.3.12
WIN95 JONSMIRL 4.0 67306684 xx I386
ap_init_modules() is called twice, once from post_parse_init() and once from master_main().
It is also called when the child tasks are started. 

1) Is post_parse_init() necessary when master_main will initialize all of the modules anyway?
2) I'm trying to initialize a database connection that takes about 25 seconds. I only need
to do this once. How can I tell which of the two ap_init_modules() calls from the main task
I'm in? I can't set a flag in my module because reiniting clears all the variables.
3) How can I tell if I'm initing from the main task or a child? I need to make sure my main
task init code doesn't run in the child.

post_parse_init() looks to be unnecessary.
Make a flag in the server_rec struc if main or child task.
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message