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.446 2001/07/02 21:59:34 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.447 2001/07/05 04:32:25 nilsson 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:2298:   {    // Note: This is run as root if roxen is started as root    foreach( (registered_urls-query("URLs"))+failed_urls, string url )    {    registered_urls -= ({ url });    roxen.unregister_url( url );    }       failed_urls = ({ });    -  int st = gethrtime(); +     foreach( (query( "URLs" )-registered_urls), string url )    if( roxen.register_url( url, this_object() ) )    registered_urls += ({ url });    else    failed_urls += ({ url });    if( !datacache )    datacache = DataCache( );    else    datacache->init_from_variables();   
Roxen.git/server/base_server/configuration.pike:2457:    int module_type;       roxen->bootstrap_info->set (({this_object(), modname}));       if( datacache ) datacache->flush();       if( sscanf(modname, "%s#%d", modname, id ) != 2 )    while( modules[ modname ] && modules[ modname ][ id ] )    id++;    + #ifdef MODULE_DEBUG    int start_time = gethrtime(); -  + #endif       if( !moduleinfo )    {    moduleinfo = roxen->find_module( modname );       if (!moduleinfo)    {    report_warning("Failed to load %s. The module probably "    "doesn't exist in the module path.\n", modname);    got_no_delayed_load = -1;
Roxen.git/server/base_server/configuration.pike:2984:    LOC_M(44, "Error while disabling module %s%s"),    descr, (bt ? ":\n"+bt : "\n"));    }      #ifdef MODULE_DEBUG    report_debug("Disabling "+descr+"\n");   #endif       clean_up_for_module( moduleinfo, me );    -  m_delete( enabled_modules, modname + "#" + id ); -  forcibly_added[ modname + "#" + id ] = 0; +     if( !nodest )    { -  +  m_delete( enabled_modules, modname + "#" + id ); +  forcibly_added[ modname + "#" + id ] = 0;    store( "EnabledModules",enabled_modules, 1, this_object());    destruct(me);    }    return 1;   }      RoxenModule find_module(string name)   //! Return the module corresponding to the name (eg "rxmlparse",   //! "rxmlparse#0" or "filesystem#1") or zero, if there was no such   //! module.