X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=update_daemon.php;h=03d366b5e23070e90c2915c5d4f9bfd877f65613;hb=16956646460aef1d8e0c41b261ce56af88e2f4f6;hp=b2bae956e981e075f2ceca5943bfea663aa4c628;hpb=816cdfb7ee28912908557e07741a2cd803252159;p=tt-rss.git diff --git a/update_daemon.php b/update_daemon.php old mode 100644 new mode 100755 index b2bae956..03d366b5 --- a/update_daemon.php +++ b/update_daemon.php @@ -44,8 +44,12 @@ die("received SIGALRM, hang in feed update?\n"); } - pcntl_signal(SIGINT, sigint_handler); - pcntl_signal(SIGALRM, sigalrm_handler); + if (function_exists('pcntl_signal')) { + pcntl_signal(SIGINT, sigint_handler); + pcntl_signal(SIGALRM, sigalrm_handler); + } else { + _debug("Warning: pcntl_signal function not present, continuing without support for signals."); + } $lock_handle = make_lockfile("update_daemon.lock");