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.1109 2012/02/14 22:20:52 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1110 2012/02/14 22:55:00 jonasw 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:142: Inside #if defined(THREADS)
  string thread_name( object thread, int|void skip_auto_name )   {    string tn;    if( thread_names[ tn=sprintf("%O",thread) ] || skip_auto_name )    return thread_names[tn];    return tn;   }      void name_thread( object thread, string name )   { -  thread_names[ sprintf( "%O", thread ) ] = name; +  string th_key = sprintf("%O", thread); +  if (name) +  thread_names[th_key] = name; +  else +  m_delete(thread_names, th_key);   }      // This mutex is used by Privs   Thread.Mutex euid_egid_lock = Thread.Mutex();   #endif /* THREADS */      /*    * The privilege changer. Works like a mutex lock, but changes the UID/GID    * while held. Blocks all threads.    *
Roxen.git/server/base_server/roxen.pike:5742:    if (--count > 0) {    open (cdt_directory + "/" + cdt_filename + "." + count,    "cwt");    cdt_next_seq_dump = time (1) + cdt_dump_seq_interval;    }    }    }    }    sleep (cdt_poll_interval);    } +  name_thread(this_thread(), 0);    cdt_thread = 0;   }      void cdt_changed (Variable.Variable v)   {    if (cdt_directory && v->query() && !cdt_thread)    cdt_thread = Thread.thread_create (cdt_poll_file);   }      // ----------------------------------------