1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-07 16:09:14 +00:00

daemon2: properly abort stuck children

This commit is contained in:
Andrew Dolgov
2010-08-25 18:16:07 +04:00
parent 1d064e0da5
commit c90a028cdc
2 changed files with 17 additions and 10 deletions

View File

@@ -5895,13 +5895,6 @@
if($debug) _debug("Feed: " . $line["feed_url"] . ", " . $line["last_updated"]);
// We setup a alarm to alert if the feed take more than 300s to update.
// => HANG alarm.
if(!$from_http && function_exists('pcntl_alarm')) pcntl_alarm(300);
update_rss_feed($link, $line["id"], true);
// Cancel the alarm (the update went well)
if(!$from_http && function_exists('pcntl_alarm')) pcntl_alarm(0);
sleep(1); // prevent flood (FIXME make this an option?)
}