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

Ensure that temporary file is used only by one process #309

Merged

Commits on Jun 28, 2020

  1. Ensure that temporary file is used only by one process

    mkstemp(3) ensures that a unique file is created, but in the
    previous implementation, there's a possibility that a process
    uses the temporary file created by another process if mkstemp(3)
    fails to create a file due to EEXIST. That has the same risk as
    Shopify#174.
    
    This commit will also resolve
    Shopify#177 if the cause is
    that multiple processes try to create a file with the same name
    at the same time.
    abicky committed Jun 28, 2020
    Copy the full SHA
    cfd28c3 View commit details
    Browse the repository at this point in the history