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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23825

Duplicate code? Apache parses config and opens logs twice.

           Summary: Duplicate code? Apache parses config and opens logs
                    twice.
           Product: Apache httpd-1.3
           Version: 1.3.28
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


in http_main.c, around line 5508 (I've made some changes, I don't know what it 
is on virgin source) there's the following code.

    if (ap_standalone) {
        ap_open_logs(server_conf, plog);
        ap_set_version();
        ap_init_modules(pconf, server_conf);
        version_locked++;
        STANDALONE_MAIN(argc, argv);
    }

standalone_main contains the same code before it forks off children

        ap_open_logs(server_conf, plog);
        ap_log_pid(pconf, ap_pid_fname);
        ap_set_version();       /* create our server_version string */
        ap_init_modules(pconf, server_conf);
        version_locked++;       /* no more changes to server_version */

Is this duplicate code? Is this necessary? Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to