]> git.wh0rd.org - tt-rss.git/blobdiff - update_daemon2.php
fix DAEMON_SLEEP_INTERVAL not being defined when used
[tt-rss.git] / update_daemon2.php
index 1e6edb337517aa10d8dd10fb517030121ea92762..af29ac18f86e0987f23cc365324cdaadadd63010 100755 (executable)
                $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"]);