mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 09:15:55 +00:00
fix DAEMON_SLEEP_INTERVAL not being defined when used
enforce minimum 60 sec spawn/sleep interval in update processes
This commit is contained in:
@@ -166,6 +166,10 @@
|
||||
$spawn_interval = SPAWN_INTERVAL;
|
||||
}
|
||||
|
||||
// let's enforce a minimum spawn interval as to not forkbomb the host
|
||||
$spawn_interval = max(60, $spawn_interval);
|
||||
_debug("Spawn interval: $spawn_interval sec");
|
||||
|
||||
if (isset($options["log"])) {
|
||||
_debug("Logging to " . $options["log"]);
|
||||
define('LOGFILE', $options["log"]);
|
||||
|
||||
Reference in New Issue
Block a user