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 - 2009, 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.1061 2010/04/21 11:22:29 stewa Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1062 2010/04/27 13:39:10 grubba 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:472:    if (!exit_code || once_mode) {    // We're shutting down; Attempt to take mysqld with us.    if (mixed err =    catch { report_notice("Shutting down MySQL.\n"); } ||    catch {    Sql.Sql db = connect_to_my_mysql(0, "mysql");    db->shutdown();    })    werror (describe_backtrace (err));    } +  // Zap some of the remaining caches. +  destruct (argcache);    destruct (cache);   #if 0    // Disabled since it's lying when the server is shut down with a    // SIGTERM or SIGINT to the start script (which include the stop    // action of the init.d script).    if (mixed err = catch {    if (exit_code && !once_mode)    report_notice("Restarting Roxen.\n");    else    report_notice("Shutting down Roxen.\n");
Roxen.git/server/base_server/roxen.pike:501:   // exit_code = 0 True shutdown   // exit_code = -1 Restart   private void low_shutdown(int exit_code)   {    if(shutdown_recurse >= 4)    {    if (mixed err =    catch (report_notice("Exiting roxen (spurious signals received).\n")) ||    catch (stop_all_configurations()))    werror (describe_backtrace (err)); +  // Zap some of the remaining caches. +  destruct(argcache);    destruct(cache);   #ifdef THREADS    if (mixed err = catch (stop_handler_threads()))    werror (describe_backtrace (err));   #endif /* THREADS */    roxenloader.real_exit(exit_code);    }    if (shutdown_recurse++) return;      #ifndef NO_SLOW_REQ_BT