You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/11/16 03:03:15 UTC

DO NOT REPLY [Bug 37519] New: - init routine invoked twice in Apache 2.0.54 on Windows 2003

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37519>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37519

           Summary: init routine invoked twice in Apache 2.0.54 on Windows
                    2003
           Product: Apache httpd-2.0
           Version: 2.1.8
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: madancr@gmail.com


I compiled and installed Apache 2.0.54 on Windows 2003. Started Apache. I can
see two processes running (one parent and one child). I have a developed a
Apache 2.0 module which is basically a plug-in which intercepts the request
first, redirects to the authentication server and if enough credentials are met
allows the request to go thru.

I have a init routine where I do basic initialization steps. For some reason the
init is getting invoked twice per process. In all I have init getting executed 4
times. This is messing up the logic and the process eventually is getting
killed. I am not having this problem with Apache on Solaris or RH AS 3.0. Only
on windows 2003 I see the problem.

My module snippet:

module AP_MODULE_DECLARE_DATA my_module =
 {
    STANDARD20_MODULE_STUFF,
    create_rec,    
    NULL,                       /* create per-server config structures */
    NULL,                       /* merge per-server config structures */
    NULL,                       /* command handlers */
    test_handlers,                /* handlers */
    register_hooks              /* register hooks */
 };

static void register_hooks(apr_pool_t *p)
{
   ap_hook_post_config(init_invoke, NULL, NULL, APR_HOOK_LAST);
}

static int init_invoke(apr_pool_t *pconf, apr_pool_t *plog,
                      apr_pool_t *ptemp, server_rec *server_ptr)
{
   // Initialization stuff.....
}


When I start Apache.exe, init_invoke() is getting caled 4 times (twice by each
process). Why is init being invoked 4 times?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org