summaryrefslogtreecommitdiff
path: root/update_daemon2.php
diff options
context:
space:
mode:
Diffstat (limited to 'update_daemon2.php')
-rwxr-xr-xupdate_daemon2.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/update_daemon2.php b/update_daemon2.php
index 1e6edb337..af29ac18f 100755
--- a/update_daemon2.php
+++ b/update_daemon2.php
@@ -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"]);