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

Add O_CLOEXEC to open calls. #624

Merged
merged 1 commit into from
May 6, 2019
Merged

Commits on Feb 22, 2019

  1. Add O_CLOEXEC to open calls.

    This prevents file descriptors from leaking to child processes.
    
    When compiled for older (pre-2.6.23) kernels which lack support for
    O_CLOEXEC there is no change in behavior.  With newer kernels, child
    processes will no longer inherit leveldb's file handles, which
    reduces the changes of accidentally corrupting the database.
    
    Fixes google#623
    adam-azarchs committed Feb 22, 2019
    Configuration menu
    Copy the full SHA
    75fceae View commit details
    Browse the repository at this point in the history