]> code.delx.au - gnu-emacs/commit
Fix race conditions with MS-Windows lock files by using _sopen.
authorEli Zaretskii <eliz@gnu.org>
Wed, 27 Feb 2013 18:37:31 +0000 (20:37 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 27 Feb 2013 18:37:31 +0000 (20:37 +0200)
commit531e70eca4c3bcd44942a67f5ea1a8bb1cb41dad
tree96029f04b4bb10fb348e94d7707edb61e1017d50
parentf2c884009053be5a380a55cf2dec226fc686286c
Fix race conditions with MS-Windows lock files by using _sopen.

 src/filelock.c (create_lock_file) [WINDOWSNT]: Use _sopen with
 _SH_DENYRW flag, instead of emacs_open, to deny any other process
 access to the lock file until it is written and closed.

Fixes: debbugs:13807
src/ChangeLog
src/filelock.c