]> git.wh0rd.org - tt-rss.git/blobdiff - update_daemon2.php
daemon2: fix removing of pids from ctimes array
[tt-rss.git] / update_daemon2.php
index 9747d523354e95ee7c6ecde839051d8550090627..ce6a3ee9c33d63f518980e008f8f8a78a0ad10cf 100755 (executable)
@@ -23,8 +23,6 @@
        require_once "config.php";
 
        define('MAX_JOBS', 2);
-       define('SPAWN_INTERVAL', 1);
-
        define('SPAWN_INTERVAL', DAEMON_SLEEP_INTERVAL);
 
        if (!function_exists('pcntl_fork')) {
@@ -49,6 +47,7 @@
 
        function reap_children() {
                global $children;
+               global $ctimes;
 
                $tmp = array();