mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 09:15:55 +00:00
pass logfile to child tasks if locking is possible, lock logfile before writing, add kludge to prevent update_rss_feed unneeded debugging go into master logfile
This commit is contained in:
@@ -218,10 +218,11 @@
|
||||
register_shutdown_function('task_shutdown');
|
||||
|
||||
$quiet = (isset($options["quiet"])) ? "--quiet" : "";
|
||||
$log = function_exists("flock") && isset($options['log']) ? '--log '.$options['log'] : '';
|
||||
|
||||
$my_pid = posix_getpid();
|
||||
|
||||
passthru(PHP_EXECUTABLE . " update.php --daemon-loop $quiet --task $j --pidlock $my_pid");
|
||||
passthru(PHP_EXECUTABLE . " update.php --daemon-loop $quiet $log --task $j --pidlock $my_pid");
|
||||
|
||||
sleep(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user