X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=update_daemon2.php;h=af29ac18f86e0987f23cc365324cdaadadd63010;hb=80fd79ca304d53d94f4b4f341ad61436976a2e7e;hp=1b9e57638eecfafe2b55858b5bbdb44d81db9001;hpb=a2d799815a95e9c76e81525d1007b38971662e6d;p=tt-rss.git diff --git a/update_daemon2.php b/update_daemon2.php index 1b9e5763..af29ac18 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -1,50 +1,52 @@ -#!/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(); }