Branch: Tag:

1999-11-19

1999-11-19 18:07:08 by Per Hedbor <ph@opera.com>

Added reload capabilities

Rev: server/base_server/configuration.pike:1.224
Rev: server/base_server/roxen.pike:1.353
Rev: server/config_interface/standard/inheritinfo.pike:1.3
Rev: server/config_interface/standard/sites/site_content.pike:1.8

1:   /* -  * $Id: roxen.pike,v 1.352 1999/11/19 10:08:55 per Exp $ +  * $Id: roxen.pike,v 1.353 1999/11/19 18:07:05 per Exp $    *    * The Roxen Challenger main program.    *
7:    */      // ABS and suicide systems contributed freely by Francesco Chemolli - constant cvs_version="$Id: roxen.pike,v 1.352 1999/11/19 10:08:55 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.353 1999/11/19 18:07:05 per Exp $";      object backend_thread;   object argcache;
90:    RequestID clone_me();   };    + mapping old_programs = set_weak_flag( ([]),1 );    - string filename( object o ) + string filename( program|object o )   { -  return search( master()->programs, object_program( o ) )-(getcwd()+"/"); +  if( objectp( o ) ) +  o = object_program( o ); +  +  string fname = search( master()->programs, o ); +  if( !fname ) +  if( old_programs[ o ] ) +  fname="OLD: "+old_programs[ o ]; +  if( !fname ) +  fname = "Unknown Program"; +  return fname-(getcwd()+"/");   }      #ifdef THREADS
1296:      mapping(string:array(int)) error_log=([]);    - string possibly_encode( string what ) - { -  if( String.width( what ) > 8 ) -  return Locale.Charset.encoder( "utf-8" ) -  ->feed( what ) -  ->drain(); -  return what; - } -  +    // Write a string to the configuration interface error log and to stderr.   void nwrite(string s, int|void perr, int|void type,    int|void mod, int|void conf)