Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.836 2003/08/29 12:32:52 wellhard Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.837 2003/09/15 15:14:26 mast Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:437: Inside #if 0
   catch {   #if 0    if (exit_code)    report_notice("Restarting Roxen.\n");    else    report_notice("Shutting down Roxen.\n");   #else    report_notice("Restarting or shutting down Roxen.\n");   #endif    }; -  exit( exit_code ); // Now we die... +  roxenloader.real_exit( exit_code ); // Now we die...   }      private int _recurse;      // Shutdown Roxen   // exit_code = 0 True shutdown   // exit_code = -1 Restart   private void low_shutdown(int exit_code)   {    if(_recurse >= 4)    {    catch (report_notice("Exiting roxen (spurious signals received).\n"));    catch (stop_all_configurations());    destruct(cache);   #ifdef THREADS    catch (stop_handler_threads());   #endif /* THREADS */ -  exit(exit_code); +  roxenloader.real_exit(exit_code);    }    if (_recurse++) return;       catch(stop_all_configurations());      #ifdef SNMP_AGENT    if(objectp(snmpagent)) {    snmpagent->stop_trap();    snmpagent->disable();    }
Roxen.git/server/base_server/roxen.pike:4342:    report_debug( "Initiating argument cache ... \b");    if( mixed e = catch( argcache = ArgCache("arguments") ) )    {    report_fatal( "Failed to initialize the global argument cache:\n" +   #ifdef DEBUG    describe_backtrace(e) +   #else /* !DEBUG */    describe_error(e) +   #endif /* DEBUG */    "\n"); -  exit(1); +  roxenloader.real_exit(1);    }    add_constant( "roxen.argcache", argcache );    report_debug("\bDone [%.2fms]\n", (gethrtime()-t)/1000.0);   }      #ifdef TIMERS   void show_timers()   {    call_out( show_timers, 30 );    array a = values(timers);