Roxen.git / server / base_server / mainconfig.pike

version» Context lines:

Roxen.git/server/base_server/mainconfig.pike:1:   inherit "config/builders"; - string cvs_version = "$Id: mainconfig.pike,v 1.39 1997/05/28 00:42:26 per Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.40 1997/06/01 22:10:29 grubba Exp $";   inherit "roxenlib";   inherit "config/draw_things";      import Array;   import Stdio;      /* Work-around for Simulate.perror */   #define perror roxen_perror      #include <confignode.h>
Roxen.git/server/base_server/mainconfig.pike:1082:    node->folded=0;    node = node->next;    }    break;          // And now the actual actions..       // Re-read a module from disk    // This is _not_ as easy as it sounds, since quite a lot of -  // caches and stuff has to be unvalidated.. +  // caches and stuff have to be invalidated..    case "refresh":    case "reload":    object mod;    string name, modname;    mapping cmod;       mod = module_of(o);    if(!mod || mod==roxen)    error("This module cannot be updated.\n");    name = module_short_name(mod, o->config());
Roxen.git/server/base_server/mainconfig.pike:1113:       if(!o->config()->load_module(modname))    {    mapping rep;    rep = http_string_answer("The reload of this module failed.\n"    "This is (probably) the reason:\n<pre>"    + _master->errors + "</pre>" );    _master->set_inhibit_compile_errors(0);    return rep;    } +  _master->set_inhibit_compile_errors(0);    object mod;    if(!o->config()->disable_module(name))error("Failed to disable module.\n");    if(!(mod=o->config()->enable_module(name)))error("Failed to enable module.\n");       o->clear();   // roxen->fork_it();       if(mappingp(o->data))    {    o->data = o->config()->modules[modname];