-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure edited ini file contents are always complete
Use method 9 from http://www.pixelbeat.org/docs/unix_file_replacement.html to fulfill the AC properties of ACID, useful for asynchronous readers and writers. I.E. that readers will never get a partially written file, and writers will not intersperse their output. Caveats are noted in the source comments. We also better handle any external issues like permissions etc. when writing the ini file, so that only the error is printed without a backtrace, which should also avoid any auto backtrace reporting that may be enabled on the system.
- Loading branch information
Showing
1 changed file
with
86 additions
and
15 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