lehitoskin / ivy

Ivy, the Taggable Image Viewer
GNU General Public License v3.0
16 stars 3 forks source link

Resolve #97 #98

Closed lehitoskin closed 5 years ago

lehitoskin commented 5 years ago

Use temporary file when writing to disk. call-with-atomic-output-file will take care of opening an output port and renaming the temporary file for us. It also (apparently) creates a lock so other processes and threads can't write to the temporary file at the same time.