require_once "config.php";
define('MAX_JOBS', 2);
- define('SPAWN_INTERVAL', 1);
-
define('SPAWN_INTERVAL', DAEMON_SLEEP_INTERVAL);
if (!function_exists('pcntl_fork')) {
function reap_children() {
global $children;
+ global $ctimes;
$tmp = array();
if (time() - $started > MAX_CHILD_RUNTIME) {
_debug("[MASTER] child process $pid seems to be stuck, aborting...");
- posix_kill($pid, SIGINT);
+ posix_kill($pid, SIGKILL);
}
}
}
print "warning: unable to create stampfile";
}
- // FIXME : $last_purge is of no use in a multiprocess update.
- // FIXME : We ALWAYS purge old posts.
- //_debug("Purging old posts (random 30 feeds)...");
- //global_purge_old_posts($link, true, 30);
-
// Call to the feed batch update function
// or regenerate feedbrowser cache