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.   //   // A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.460 2001/08/05 20:05:03 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.461 2001/08/13 18:19:35 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:2453:    ModuleInfo|void moduleinfo,    int|void nostart )   {    MODULE_LOCK;    int id;    ModuleCopies module;    int pr;    mixed err;    int module_type;    +  if( forcibly_added[modname] ) +  return search(otomod, modname); +     if( datacache ) datacache->flush();       if( sscanf(modname, "%s#%d", modname, id ) != 2 )    while( modules[ modname ] && modules[ modname ][ id ] )    id++;       roxen->bootstrap_info->set (({this_object(), modname + "#" + id}));      #ifdef MODULE_DEBUG    int start_time = gethrtime();
Roxen.git/server/base_server/configuration.pike:2775:   #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;    }       if(module_type & MODULE_PROVIDER)    if (err = catch    { -  mixed provs = me->query_provides(); +  mixed provs = me->query_provides ? me->query_provides() : ({});    if(stringp(provs))    provs = (< provs >);    if(arrayp(provs))    provs = mkmultiset(provs);    if (multisetp(provs)) {    pri[pr]->provider_modules [ me ] = provs;    }    }) {   #ifdef MODULE_DEBUG    if (enable_module_batch_msgs) report_debug("\bERROR\n");
Roxen.git/server/base_server/configuration.pike:3036:    !enabled_modules[ mod+"#0" ] )    && !forcibly_added[ mod+"#0" ])    {   #ifdef MODULE_DEBUG    if( !wr++ )    if (enable_module_batch_msgs)    report_debug("\b[ adding req module" + (sizeof (mods) > 1 ? "s" : "") + "\n");    else    report_debug("Adding required module" + (sizeof (mods) > 1 ? "s" : "") + "\n");   #endif -  forcibly_added[ mod+"#0" ] = 1; +     enable_module( mod+"#0" ); -  +  forcibly_added[ mod+"#0" ] = 1;    }    }   #ifdef MODULE_DEBUG    if( wr && enable_module_batch_msgs )    report_debug("] \b");   #endif   }      #if ROXEN_COMPAT < 2.2   // BEGIN SQL
Roxen.git/server/base_server/configuration.pike:3120:   {    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) {    enabled_modules = retrieve("EnabledModules", this_object()); -  roxenloader.LowErrorContainer ec = roxenloader.LowErrorContainer(); -  roxenloader.push_compile_error_handler( ec ); + // 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;    foreach( modules_to_process, tmp_string )    {    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"), -  tmp_string, describe_backtrace(err)); +  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;    }