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

bootstrap: write texts to a .tmp file first for atomicity #51816

Merged
merged 2 commits into from
Jul 12, 2018

Commits on Jul 10, 2018

  1. bootstrap: write texts to a .tmp file first for atomicity

    If you are using a hard-linked file as your config.toml, this change will affect the way other instances of the file is modified.
    The original version would modify all other instances whereas the new version will leave others unchanged, reducing the ref count by one.
    
    Signed-off-by: NODA, Kai <nodakai@gmail.com>
    nodakai committed Jul 10, 2018
    Configuration menu
    Copy the full SHA
    bcb8a06 View commit details
    Browse the repository at this point in the history
  2. bootstrap: our best to achieve atomic rename on Win32

    This is a tricky operation to implement on Win32; see
    https://ci.appveyor.com/project/nodakai/python-win-behavior
    
    Signed-off-by: NODA, Kai <nodakai@gmail.com>
    nodakai committed Jul 10, 2018
    Configuration menu
    Copy the full SHA
    97d0bc3 View commit details
    Browse the repository at this point in the history