1
0
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:
Andrew Dolgov
2017-05-06 10:54:14 +03:00
parent e6c886bf66
commit 4fd0790804
4 changed files with 16 additions and 7 deletions

View File

@@ -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"]);