Branch: Tag:

1997-09-09

1997-09-09 06:37:21 by David Hedbor <david@hedbor.org>

Changed so that all server ports are opened before any modules are loaded.

Rev: server/base_server/configuration.pike:1.76
Rev: server/base_server/roxen.pike:1.129

1: - constant cvs_version = "$Id: roxen.pike,v 1.128 1997/09/09 04:47:57 neotron Exp $"; + constant cvs_version = "$Id: roxen.pike,v 1.129 1997/09/09 06:37:20 neotron Exp $";   #define IN_ROXEN   #include <roxen.h>   #include <config.h>
1235:    configurations += ({ cf });    current_configuration = cf;    report_notice("Enabled the virtual server \""+name+"\"."); +     return cf;   }   
1248:    foreach(list_all_configurations(), string config)    {    if(err=catch { enable_configuration(config)->start(); }) -  perror("Error while enabling configuration "+config+":\n"+ +  perror("Error while loading configuration "+config+":\n"+    describe_backtrace(err)+"\n");    }; -  +  foreach(configurations, object config) +  { +  if(err=catch { config->enable_all_modules(); }) +  perror("Error while loading modules in configuration "+config->name+":\n"+ +  describe_backtrace(err)+"\n"); +  };    enabling_configurations = 0;   }