Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in_tail: Safely skip files used by another process on Windows #3378

Merged
merged 1 commit into from
May 18, 2021

Commits on May 18, 2021

  1. in_tail: Safely skip files used by another process on Windows

    On Windows, a win32 error `ERROR_SHARING_VIOLATION` is occured on
    `Fluent::FileWrapper.stat(path)` when a file is temporarily used by
    another process. Such files should be skipped safely until the file is
    released as same as ENOENT case.
    
    This patch rescues also other EACCES cases although they rarely occur.
    
    Signed-off-by: Takuro Ashie <ashie@clear-code.com>
    ashie committed May 18, 2021
    Configuration menu
    Copy the full SHA
    74409da View commit details
    Browse the repository at this point in the history