--- deliantra/server/lib/cf.pm 2007/01/19 23:32:52 1.185 +++ deliantra/server/lib/cf.pm 2007/01/20 01:12:39 1.186 @@ -351,7 +351,10 @@ my $fh = aio_open "$runtime~", O_WRONLY | O_CREAT, 0644 or return; - my $value = $cf::RUNTIME + 1 + 10; # 10 is the runtime save interval, for a monotonic clock + my $value = $cf::RUNTIME + 90 + 10; + # 10 is the runtime save interval, for a monotonic clock + # 60 allows for the watchdog to kill the server. + (aio_write $fh, 0, (length $value), $value, 0) <= 0 and return; @@ -2479,6 +2482,7 @@ data => WF_AUTOCANCEL, after => 1, interval => 10, + prio => 6, # keep it lowest so it acts like a watchdog cb => Coro::unblock_sub { write_runtime or warn "ERROR: unable to write runtime file: $!";