Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: configuration.pike,v 1.381 2000/11/02 08:48:49 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.382 2000/11/02 11:34:02 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>      inherit "basic_defvar";      mapping enabled_modules = ([]);   mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/configuration.pike:2050:    store("spider#0", variables, 0, this_object());    start(2);    return 1;    }    string q = otomod[ o ];    if( !q )    error("Invalid module");       store(q, o->query(), 0, this_object());    invalidate_cache(); -  o->start(2, this_object()); +  if( error = catch( o->start(2, this_object()) ) ) +  { +  if( objectp(error ) ) +  error = (array)error; +  if( sizeof(error)>1 && arrayp( error[1] ) ) +  { +  int i; +  for( i = 0; i<sizeof( error[1] ); i++ ) +  if( error[1][i][2] == save_one ) +  break; +  error[1] = error[1][i+1..]; +  } +  if( o->report_error ) +  o->report_error( "Call to start failed.\n"+describe_backtrace( error ) ); +  else +  report_error( "Call to start failed.\n"+describe_backtrace( error )); +  }    invalidate_cache();    return 1;   }      RoxenModule reload_module( string modname )   {    RoxenModule old_module = find_module( modname );    ModuleInfo mi = roxen->find_module( (modname/"#")[0] );    if( !old_module ) return 0;   
Roxen.git/server/base_server/configuration.pike:2197:    }   #endif    got_no_delayed_load = -1;    return module[id];    }    }       if(module[id] && module[id] != me)    {    if( module[id]->stop ) -  module[id]->stop(); +  catch( module[id]->stop() );   // if( err = catch( disable_module( modname+"#"+id ) ) )   // report_error(LOCALE->error_disabling_module(moduleinfo->get_name(),   // describe_backtrace(err)));    }       me->set_configuration( this_object() );       module_type = moduleinfo->type;    if (module_type & (MODULE_LOCATION|MODULE_EXTENSION|    MODULE_CONFIG|MODULE_FILE_EXTENSION|MODULE_LOGGER|