]> git.lyx.org Git - features.git/commit
Improve file saving strategy
authorGeorg Baum <baum@lyx.org>
Mon, 9 Jun 2014 09:08:24 +0000 (11:08 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 9 Jun 2014 09:08:24 +0000 (11:08 +0200)
commitbf782ee02ac35d575247bf63eabbd38bd31c53af
tree4bf58cf32eb987395f27dd620853c54aa0225ac7
parent47721216f0d0959e4337e399fdccd50f9eba8243
Improve file saving strategy

- The TempFile class guarantees to generate a file name, we are not limited to
  100 tries of a predictable scheme anymore, which could break if LyX
  frequently crashes.
- The temp file name generation has no race condition against another LyX
  instance in the same directory anymore.
- Symlinks survive saving again (regression of 10364082c835).
src/Buffer.cpp
src/support/FileName.cpp
src/support/FileName.h
src/support/TempFile.cpp
src/support/TempFile.h