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 - 2009, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.723 2012/02/03 15:55:21 jonasw Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.724 2012/02/14 16:52:38 mast 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)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:709: Inside #if defined(SNMP_AGENT)
   if (Thread.MutexKey lock = stop_all_modules_mutex->trylock()) {   #ifdef SNMP_AGENT    if(query("snmp_process") && objectp(roxen->snmpagent)) {    roxen->snmpagent->vs_stop_trap(get_config_id());    roxen->snmpagent->del_virtserv(get_config_id());    }   #endif       unregister_urls();    +  if (roxen.handler_threads_on_hold()) +  // Run do_stop_all_modules synchronously if there are no handler +  // threads running (typically during the RoxenTest_help self test). +  do_stop_all_modules (lock); +  else +  // Seems meaningless to queue this in a handler thread and then +  // just wait for it below if asynch isn't set - could just as +  // well do the work in this thread then. But now isn't a good +  // moment to mess around with it. /mast    roxen.handle (do_stop_all_modules, lock);    }       if (!asynch) stop_all_modules_mutex->lock (1);   }      string|array(string) type_from_filename( string file, int|void to,    string|void myext )   {    array(string)|string tmp;