diff options
author | Andrew Dolgov <[email protected]> | 2013-09-02 12:33:59 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-09-02 12:33:59 +0400 |
commit | a33558a61efc244ad8c809748e6ee64413e3a217 (patch) | |
tree | a84d96dc58ca3cb7981443389b9ce7f6b7b42c19 /update_daemon2.php | |
parent | f73e03e000d7119b8c9724790e70e4da4fb32cfe (diff) |
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
Diffstat (limited to 'update_daemon2.php')
-rwxr-xr-x | update_daemon2.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/update_daemon2.php b/update_daemon2.php index 9d948a64d..e5bc55ee0 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -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); |