Write out cache file to temporary file + atomic replace
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 7 Apr 2021 10:05:36 +0000 (12:05 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 7 Apr 2021 10:05:36 +0000 (12:05 +0200)
commitac0124576facc8e3d88b33e40ea09769b81a745f
tree6ba9619da3ad55e18a5093919c8dda49622d9210
parentd92e7d020012b001001fb71351512365342ae2c2
Write out cache file to temporary file + atomic replace

Just in case multiple processes might race for the writeout.
Actually seen in production as pingcheck currently seems
to get restarted by connd for every new INTRACLIENT.
src/dns/dnscache.cpp