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.938 2006/09/29 12:43:31 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.939 2006/10/13 17:30:12 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:3742:    init_db();    // Support that the 'local' database moves.    master()->resolv( "DBManager.add_dblist_changed_callback" )( init_db );       // Always remove entries that are older than one week.    background_run( 10, do_cleanup );    }       void destroy()    { -  if (mixed err = catch(sync_meta())) +  if (mixed err = catch(sync_meta())) {    report_warning("Failed to sync cached atimes for "+name+"\n"); -  + #if 0 + #ifdef DEBUG +  report_debug (describe_backtrace (err)); + #endif + #endif    }    } -  + }         #ifdef ENABLE_NEW_ARGCACHE   class ArgCache   //! Generic cache for storing away a persistent mapping of data to be   //! refetched later by a short string key. This being a cache, your   //! data may be thrown away at random when the cache is full.   {   #undef QUERY   #define QUERY(X,Y...) db->query(X,Y)
Roxen.git/server/base_server/roxen.pike:5131:   }         array argv;   int main(int argc, array tmp)   {    // __builtin.gc_parameters((["enabled": 0]));    argv = tmp;    tmp = 0;    + #if 0 +  Thread.thread_create (lambda () { +  while (1) { +  sleep (10); +  describe_all_threads(); +  } +  }); + #endif +    #ifdef LOG_GC_TIMESTAMPS    GCTimestamp();   #endif       // For RBF    catch(mkdir( "../var" ));       dbm_cached_get = master()->resolv( "DBManager.cached_get" );       dbm_cached_get( "local" )->
Roxen.git/server/base_server/roxen.pike:6355:    }       int write( string what )    {    if( !sizeof( write_buf ) )    call_out( do_the_write, 1 );    write_buf += ({what});    return strlen(what);    }   } -  +