diff options
author | Andrew Dolgov <[email protected]> | 2010-03-22 11:17:58 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-03-22 11:17:58 +0300 |
commit | 16956646460aef1d8e0c41b261ce56af88e2f4f6 (patch) | |
tree | c0d68527466136159cb3eaedea903b5f45a79df3 /update_daemon2.php | |
parent | 36d146f8e234bf0b74f3d937fa4e1b47b9b58935 (diff) |
daemon: fallback automatically when pcntl_signal() is not present
Diffstat (limited to 'update_daemon2.php')
-rwxr-xr-x | update_daemon2.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/update_daemon2.php b/update_daemon2.php index a8eb48d4c..779373a63 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -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"; |