]> git.wh0rd.org - tt-rss.git/blobdiff - update_daemon2.php
daemon: fallback automatically when pcntl_signal() is not present
[tt-rss.git] / update_daemon2.php
index a8eb48d4c2bfcf43cef3b120290cba8ed9664dee..779373a632faba6c273b962348cbaf343aefb89c 100755 (executable)
 
        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";