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: Daniel Colascione
Subject: Re: Locking files for CLASH_DETECTION now supported on MS-Windows
Date: Mon, 25 Feb 2013 18:43:16 -0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

On 2/25/2013 6:03 PM, Paul Eggert wrote:
> One other thought.  Part of the reason GNU/POSIXish hosts use
> symbolic links is that readlink, symlink and unlink
> are atomic operations.  They let Emacs atomically create
> a lock, test whether a lock exists, and remove a lock.  This
> doesn't seem to be true of the new MS-Windows implementation,
> which uses open+write+close to create a lock and open+read+close
> to test whether a lock exists, neither of which is atomic.
> Is there some way this can be done atomically on MS-Windows?
> 
> Are readlink, symlink, and unlink atomic on MS-Windows?

Why would they have to be? File creation is atomic. File deletion is atomic. The
lock is signaled by the presence of the file, right? Why would anything else 
matter?

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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