Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Internet Server.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.534 2002/07/22 14:48:15 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.535 2002/10/01 22:20:11 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)      #ifdef THROTTLING_DEBUG   #undef THROTTLING_DEBUG
Roxen.git/server/base_server/configuration.pike:442:    }    }) report_error ("While stopping the logger: " + describe_backtrace (err));    STOP_MODULES(indices (allmods), "unclassified module");   #undef STOP_MODULES       if (!asynch) {    num_modules -= 17;    if (num_modules) {   #ifdef THREADS    // Relying on the interpreter lock here. -  modules_stopped->wait(); +  object mutex = Thread.Mutex(); +  object silly = mutex->lock(); +  modules_stopped->wait(silly); +  silly = 0;   #else    error ("num_modules shouldn't be nonzero here when running nonthreaded.\n");   #endif    }    }   }      string type_from_filename( string file, int|void to, string|void myext )   {    array(string)|string tmp;