AppShell processes delete each other's log files |
||
Issue descriptionWhen ShellMainDelegate::InitLogging [1] is executed by a process, it finds the log file (app_shell.log, which is shared by all processes) and deletes it if it exists. So only the last process to run this code will hold a file descriptor that actually points to the file on disk. We can fix this the same way Chrome does [2]: only the main process should delete the old log file (desired behavior when launching the first instance). Derivative processes should choose to append to that file. [1] https://cs.chromium.org/chromium/src/extensions/shell/app/shell_main_delegate.cc?q=initlogging+file:shell_main_delegate%5C.cc&sq=package:chromium&l=50&dr=C [2] https://cs.chromium.org/chromium/src/chrome/app/chrome_main_delegate.cc?sq=package:chromium&dr=C&q=process_type+delete_old_log_file&l=482 content_shell has the same behavior as app_shell does currently. It would be nice if content_shell, app_shell and Chrome could share more of their implementation (see also: issue 719644).
,
Jul 14 2017
fixed last month |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jun 6 2017