emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Locking files for CLASH_DETECTION now supported on MS-Windows


From: Paul Eggert
Subject: Re: Locking files for CLASH_DETECTION now supported on MS-Windows
Date: Mon, 25 Feb 2013 19:23:07 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3

On 02/25/2013 06:43 PM, Daniel Colascione wrote:
> File creation is atomic. File deletion is atomic.
> The lock is signaled by the presence of the file, right?

Not in the recently-added MS-Windows implementation, no.
The lock is signaled by a nonempty file (approximately;
the details are a bit more complicated).

There are races where two Emacs instances can both
grab the lock simultaneously.  For example, one Emacs
instance can call create_lock_file with !FORCE and another
with FORCE, and afterwards both Emacs instances
think they own the lock (and the lock file itself
says the !FORCE Emacs owns it).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]