Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.479 2001/09/03 14:10:41 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.480 2001/09/03 16:38:42 per Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:2404:    }    invalidate_cache();    return 1;   }      RoxenModule reload_module( string modname )   {    RoxenModule old_module = find_module( modname );    ModuleInfo mi = roxen.find_module( (modname/"#")[0] );    +  roxen->bootstrap_info->set (({this_object(), modname })); +     if( !old_module ) return 0;       master()->clear_compilation_failures();       if( !old_module->not_a_module )    {    save_one( old_module );    master()->refresh_inherit( object_program( old_module ) );    master()->refresh( object_program( old_module ), 1 );    }
Roxen.git/server/base_server/configuration.pike:2713:    if((me->start) && (err = catch( me->start(0, this_object()) ) ) )    {   #ifdef MODULE_DEBUG    if (enable_module_batch_msgs)    report_debug("\bERROR\n");   #endif    string bt=describe_backtrace(err);    report_error(LOC_M(41, "Error while initiating module copy of %s%s"),    moduleinfo->get_name(), (bt ? ":\n"+bt : "\n"));    got_no_delayed_load = -1; -  /* Clean up some broken references to this module. */ - // m_delete(otomod, me); - // m_delete(module->copies, search( module->copies, me )); - // destruct(me); - // return 0; +     }    if( inited && me->ready_to_receive_requests )    if( mixed q = catch( me->ready_to_receive_requests( this_object() ) ) )    {   #ifdef MODULE_DEBUG    if (enable_module_batch_msgs) report_debug("\bERROR\n");   #endif    report_error( "While calling ready_to_receive_requests:\n"+    describe_backtrace( q ) );    got_no_delayed_load = -1;
Roxen.git/server/base_server/configuration.pike:3134:      void low_init(void|int modules_already_enabled)   {    if( inited )    return; // already done       int start_time = gethrtime();    if (!modules_already_enabled)    report_debug("\nEnabling all modules for "+query_name()+"... \n");    -  if (!modules_already_enabled) { +  if (!modules_already_enabled) +  {    enabled_modules = retrieve("EnabledModules", this_object());   // roxenloader.LowErrorContainer ec = roxenloader.LowErrorContainer();   // roxenloader.push_compile_error_handler( ec );       array modules_to_process = indices( enabled_modules );    string tmp_string;       array err;    forcibly_added = ([]);    enable_module_batch_msgs = 1;
Roxen.git/server/base_server/configuration.pike:3157:    if( !forcibly_added[ tmp_string ] )    if(err = catch( enable_module( tmp_string )))    {    report_error(LOC_M(45, "Failed to enable the module %s. Skipping.")    +"\n%s\n", tmp_string, describe_backtrace(err));    got_no_delayed_load = -1;    }    }    enable_module_batch_msgs = 0;    roxenloader.pop_compile_error_handler(); - // if( strlen( ec->get() ) ) - // report_error( "While enabling modules in "+name+":\n"+ec->get() ); - // if( strlen( ec->get_warnings() ) ) - // report_warning( "While enabling modules in "+name+":\n"+ec->get_warnings()); +     forcibly_added = ([]);    }       foreach( ({this_object()})+indices( otomod ), RoxenModule mod )    if( mod->ready_to_receive_requests )    if( mixed q = catch( mod->ready_to_receive_requests( this_object() ) ) ) {    report_error( "While calling ready_to_receive_requests in "+    otomod[mod]+":\n"+    describe_backtrace( q ) );    got_no_delayed_load = -1;