From 531e70eca4c3bcd44942a67f5ea1a8bb1cb41dad Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 27 Feb 2013 20:37:31 +0200 Subject: 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 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ChangeLog') diff --git a/src/ChangeLog b/src/ChangeLog index f5617487fda..4135dadf28a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2013-02-27 Eli Zaretskii + + * 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. + (Bug#13807) + 2013-02-27 Paul Eggert * callint.c (Qcall_interactively): -- cgit v1.2.1