When making new cache entries, write them to a file in a temporary
authorTaylor R. Campbell <net/mumble/campbell>
Tue, 12 Aug 2008 01:46:53 +0000 (01:46 +0000)
committerTaylor R. Campbell <net/mumble/campbell>
Tue, 12 Aug 2008 01:46:53 +0000 (01:46 +0000)
commit2711d51cb469cc2442ff4987e1343b9ee0a32405
treed318abd0febc5e40a0644e963c51b58be667d775
parent61e3f739f47960fb20bb1eb285c591968688113c
When making new cache entries, write them to a file in a temporary
directory first, and move the file to its permanent location only
after it has been fully written.  This prevents C-g from leaving
half-written cache entries.  (File folders should perhaps do this too,
but it is not clear where the temporary directory should be located,
and using /tmp or /var/tmp is not appropriate, since those directories
may reside on another file system, rendering rename(2) useless.)
v7/src/imail/imail-imap.scm