2001-11-22
2001-11-22 15:41:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
0bbe6569e88b7c5d642c25d16a2782d6891f07f1
(15 lines)
(+13/-2)
[
Show
| Annotate
]
Branch: 5.2
Support for disabling ABS without a restart.
Potential fix for [bug 2538 (#2538)].
Rev: server/base_server/roxen.pike:1.759
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.758 2001/11/21 12:24:41 mast Exp $";
+ constant cvs_version="$Id: roxen.pike,v 1.759 2001/11/22 15:41:43 grubba Exp $";
// The argument cache. Used by the image cache.
ArgCache argcache;
2129: 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");
2141: Inside #if undefined(__NT__)
_exit(1); // It might now quit correctly otherwise, if it's
// locked up
});
- alarm (60*query("abs_timeout")+10);
+ alarm (60*query("abs_timeout")+20);
}
#endif
4196: 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":