mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
0009768c7f
In this case, "atomic" means that there will be no situation where the file contains only part of the newContent data, and therefore other software monitoring the file for changes (using a mechanism like inotify) won't encounter a truncated file. It does _not_ mean that there can't be existing filehandles open against the old version of the file. On Windows systems the write will fail in that case, but on Unix systems the write will typically succeed but leave the existing filehandles still pointing at the old version of the file. They'll need to reopen the file in order to see the new content. |
||
---|---|---|
.. | ||
testdata/locks-files | ||
doc.go | ||
locks_file_test.go | ||
locks_file.go | ||
locks_test.go | ||
locks.go | ||
paths.go | ||
testing.go |