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 - 2004, 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.1011 2009/01/10 16:54:54 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1012 2009/01/11 14:50: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:31: Inside #if defined(SMTP_RELAY)
  #ifdef SMTP_RELAY   inherit "smtprelay";   #endif   inherit "hosts";   inherit "disk_cache";   // inherit "language";   inherit "supports";   inherit "module_support";   inherit "config_userdb";    - #ifdef THREADS - // Used when running threaded to find out which thread is the backend thread. + // Used to find out which thread is the backend thread.   Thread.Thread backend_thread; - #endif /* THREADS */ +       // --- Locale defines ---      //<locale-token project="roxen_start"> LOC_S </locale-token>   //<locale-token project="roxen_message"> LOC_M </locale-token>   #define LOC_S(X,Y) _STR_LOCALE("roxen_start",X,Y)   #define LOC_M(X,Y) _STR_LOCALE("roxen_message",X,Y)   #define CALL_M(X,Y) _LOCALE_FUN("roxen_message",X,Y)      // --- Debug defines ---
Roxen.git/server/base_server/roxen.pike:5161:    else if (b == backend_thread)    return 1;    else    return a->id_number() > b->id_number();    });       int i;    for(i=0; i < sizeof(threads); i++) {    report_debug(">> ### Thread 0x%x%s:\n",    threads[i]->id_number(), - #ifdef THREADS +     threads[i] == backend_thread ? " (backend thread)" : "" - #else -  "" - #endif +     );    report_debug(">> " +    replace (describe_backtrace (threads[i]->backtrace()),    "\n", "\n>> ") +    "\n");    }       report_debug ("###### Total %d Pike threads\n\n", sizeof (threads));       threads = 0;
Roxen.git/server/base_server/roxen.pike:5431: Inside #if defined(SNMP_AGENT)
   // enabling SNMP agent    snmpagent = SNMPagent();    snmpagent->enable();    report_debug("\benabled.\n");    snmpagent->start_trap();       } else    report_debug("\bdisabled.\n");   #endif // SNMP_AGENT    - #ifdef THREADS +     backend_thread = this_thread(); -  + #ifdef THREADS    name_thread( backend_thread, "Backend" );   #else    report_debug("\n"    "WARNING: Threads not enabled!\n"    "\n");   #endif /* THREADS */       enable_configurations();       string pid_file = Getopt.find_option(argv, "p", "pid-file");