-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #174. This commit will also resolve #177 if the cause is that multiple processes try to create a file with the same name at the same time.
- Loading branch information
Showing
1 changed file
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters