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.907 2005/11/14 13:00:47 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.908 2005/11/18 16:29:44 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:1395:    get_url(), _name, refs);   #endif /* PORT_DEBUG */    if( !--refs ) {    if (retries) {    remove_call_out(bind);    }    if (port_obj) {    destruct(port_obj);    }    port_obj = 0; +  if (open_ports[name]) { +  if (open_ports[name][ip]) {    m_delete(open_ports[name][ip], port);    if(!sizeof(open_ports[name][ip]))    m_delete(open_ports[name], ip); -  +  }    if(!sizeof(open_ports[name]))    m_delete(open_ports, name); -  +  }    //destruct( ); // Close the port.    }    }       Stdio.File accept()    {    return port_obj->accept();    }       string query_address()
Roxen.git/server/base_server/roxen.pike:4931: 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(); +  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");    if (pid_file && query("permanent_uid")) rm(pid_file);       set_u_and_gid(); // Running with the right [e]uid:[e]gid from this point on.       create_pid_file(pid_file);       // Done before the modules are dumped.
Roxen.git/server/base_server/roxen.pike:4955:    if( Getopt.find_option( argv, 0, "no-delayed-load" ))    enable_configurations_modules();    else    foreach( configurations, Configuration c )    if( c->query( "no_delayed_load" ) )    c->enable_all_modules();   #endif // RUN_SELF_TEST      #ifdef THREADS    start_handler_threads(); -  backend_thread = this_thread(); -  name_thread( backend_thread, "Backend" ); +    #endif /* THREADS */      #ifdef TEST_EUID_CHANGE    if (test_euid_change) {    Stdio.File f = Stdio.File();    if (f->open ("rootonly", "r") && f->read())    werror ("Backend thread can read rootonly\n");    else    werror ("Backend thread can't read rootonly\n");    }