1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:35:56 +00:00

daemon: fallback automatically when pcntl_signal() is not present

This commit is contained in:
Andrew Dolgov
2010-03-22 11:17:58 +03:00
parent 36d146f8e2
commit 1695664646
2 changed files with 11 additions and 3 deletions

View File

@@ -27,8 +27,12 @@
define('SPAWN_INTERVAL', DAEMON_SLEEP_INTERVAL);
if (!function_exists('pcntl_fork')) {
die("error: This script requires PHP compiled with PCNTL module.\n");
}
if (!ENABLE_UPDATE_DAEMON) {
die("Please enable option ENABLE_UPDATE_DAEMON in config.php\n");
die("error: Please enable option ENABLE_UPDATE_DAEMON in config.php\n");
}
require_once "db.php";