From 5417099f72c64bc12a32bb9165b4b8873836dd8e Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 14 Dec 2017 16:41:56 +0000 Subject: [PATCH] Spawn now spawns --- scripts/worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/worker.php b/scripts/worker.php index c216dbbcc8..a3738038b1 100755 --- a/scripts/worker.php +++ b/scripts/worker.php @@ -44,7 +44,7 @@ $a->set_baseurl(Config::get('system', 'url')); load_hooks(); -$spawn = (($_SERVER["argc"] <= 1) || ($_SERVER["argv"][1] == "spawn")); +$spawn = (($_SERVER["argc"] == 2) && ($_SERVER["argv"][1] == "spawn")); if ($spawn) { Worker::spawnWorker(); -- 2.39.5