X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=update_daemon2.php;h=1dddf6efdaec9d63edec1ef77eb2de4a9531753f;hb=2242bb38d2e5a23e01973d079c42cc63484aeb8e;hp=053a73d7d7a399f958f417e07a3fd74a4b423ee8;hpb=3b3a199df86b1c94d16e6c0f601e3988df37070f;p=tt-rss.git diff --git a/update_daemon2.php b/update_daemon2.php index 053a73d7..1dddf6ef 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -1,44 +1,44 @@ -#!/usr/bin/php +#!/usr/bin/env php 50) { - update_daemon_common($link); - } else { - $count = update_feedbrowser_cache($link); - _debug("Finished, $count feeds processed."); - } - - _debug("Elapsed time: " . (time() - $start_timestamp) . " second(s)"); - - db_close($link); - - // We are in a fork. - // We wait a little before exiting to avoid to be faster than our parent process. sleep(1); + // We exit in order to avoid fork bombing. exit(0); } - - // We wait a little time before the next fork, in order to let the first fork - // mark the feeds it update : - sleep(1); } $last_checkpoint = time(); }