make -a create the file atomically
commit6b4ac073da1c091329974132625acac19599df72
authorJoey Hess <joeyh@joeyh.name>
Mon, 19 Jan 2015 17:43:37 +0000 (19 13:43 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 19 Jan 2015 17:43:37 +0000 (19 13:43 -0400)
treef89fcb72e9c2d4ea3c83bdb5d04c94758e0b72c9
parentde5a08fca9dfe0f847e81214af81064c2aaa77ae
make -a create the file atomically

Ie, copy existing file content to temp file, then append sponged input,
then rename over.
sponge.c