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 - 2001, 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.801 2002/10/14 09:04:28 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.802 2002/10/28 19:24:52 mast Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN   #include <roxen.h>   #include <config.h>   #include <module.h>   #include <variables.h>
Roxen.git/server/base_server/roxen.pike:4392: Inside #if defined(SUICIDE_DEBUG)
   werror("check_commit_suicide(): Engage:%d, schedule: %d, time: %d\n"    " Schedule: %s",    query("suicide_engage"),    getvar("suicide_schedule")->get_next( query("last_suicide")),    time(),    ctime(getvar("suicide_schedule")->get_next( query("last_suicide"))));   #endif /* SUICIDE_DEBUG */    if (query("suicide_engage")) {    int next = getvar("suicide_schedule")    ->get_next( query("last_suicide") ); -  if (next >= 0 && next <= time(1)) { +  if (next >= 0) +  if (next <= time(1)) {    report_notice("Auto Restart triggered.\n");    set( "last_suicide", time(1) );    save( );    restart();    } else {    call_out(check_commit_suicide, next - time(1));    }    }   }