aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/orddict.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2011-03-23 15:54:04 +0100
committerSiri Hansen <[email protected]>2011-03-23 16:00:08 +0100
commit07cca90aadc77bad241a378c560a3b4f22352160 (patch)
treeac6a9bf591b05fe82400bf46c473966b33b0a862 /lib/stdlib/src/orddict.erl
parentf861b4fdb3fd39e35f2951c53a73b30a98c7f973 (diff)
downloadotp-07cca90aadc77bad241a378c560a3b4f22352160.tar.gz
otp-07cca90aadc77bad241a378c560a3b4f22352160.tar.bz2
otp-07cca90aadc77bad241a378c560a3b4f22352160.zip
Update index file atomically
Since the log_mf_h index file might be read by other processes than the error handler (e.g. by the rb tool), this file should be updated atomically. This will avoid hitting the time gap between opening the file in write mode (and thus emptying the file) and the actual update with the new contents. To do this, a temporary file is written, and the file:rename/1 used to replace the real index file.
Diffstat (limited to 'lib/stdlib/src/orddict.erl')
0 files changed, 0 insertions, 0 deletions