- // We disable stamp file, since it is of no use in a multiprocess update.
- // not really, tho for the time being -fox
- if (!make_stampfile('update_daemon.stamp')) {
- print "warning: unable to create stampfile";
- }
-
- // Call to the feed batch update function
- // or regenerate feedbrowser cache
-
- if (rand(0,100) > 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.