Branch: Tag:

2001-11-22

2001-11-22 15:39:58 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Support for disabling ABS without a restart.
Potential fix for [bug 2538 (#2538)].

Rev: server/base_server/roxen.pike:1.758

6:   // 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.757 2001/11/14 13:12:37 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.758 2001/11/22 15:39:58 grubba Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
2124: Inside #if undefined(__NT__)
   call_out (restart_if_stuck,10);    signal(signum("SIGALRM"),    lambda( int n ) { +  if (!query("abs_engage")) { +  abs_started = 0; +  report_debug("Anti-Block System Disabled.\n"); +  return; +  }    report_debug("**** %s: ABS engaged!\n"    "Trying to dump backlog: \n",    ctime(time()) - "\n");
2133: Inside #if undefined(__NT__)
   };    report_debug("**** %s: ABS exiting roxen!\n\n",    ctime(time())); -  _exit(1); // It might now quit correctly otherwise, if it's +  _exit(1); // It might not quit correctly otherwise, if it's    // locked up    }); -  alarm (60*query("abs_timeout")+10); +  alarm (60*query("abs_timeout")+20);   }   #endif   
4191: Inside #if undefined(__NT__)
   else    remove_call_out(restart_if_stuck);    break; +  case "abs_timeout": +  if (value < 0) { +  return "The timeout must be >= 0 minutes."; +  } +  break;   #endif       case "suicide_engage":