You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Di...@jrc.it on 1997/01/08 19:19:23 UTC

Double read config

Just a quick one..

A bit in http_main.c where either of the standalone/main
server gets kicked off.

    ....  
    server_conf = read_config (pconf, ptrans, server_confname);
    
    if (standalone) {
        clear_pool (pconf);	/* standalone_main rereads... */
        standalone_main(argc, argv);
    }
    else {
        conn_rec *conn;
	request_rec *r;
	struct sockaddr sa_server, sa_client;
	BUFF *cio;
     
- It appears that the read_config() is called again in standalone_main() 
  almost directly. is this intentional ??? 

- The rest of the else contruct contains a lot of code almost identical
  to the bits in standalone_main() Any good reasons for keeping it there 
  ?? or can I just unify it ?

In other words; any objections to cleaning it up; I tried this and it
seems to work.

(This is just so that Harrie.Hazewinkel@jrc.it his SNMP agent does not get
confused about things starting off twice :-)

Tha !

Dw.




http://ewse.ceo.org                         http://enrm.ceo.org
DWvGulik@Dialis.xs4all.nl                  Dirk.vanGulik@jrc.it
+39 332 78 0014                                 +39 332 78 9549
                                            fax +39 332 78 9185

ISEI/ESBA;                     The Center For Earth Observation
Joint Research Centre of the European Communities, Ispra, Italy