[email protected]
[Top] [All Lists]

Antwort: Re: mcedit and file locking

Subject: Antwort: Re: mcedit and file locking
From:
Date: Mon, 25 Sep 2006 16:48:01 +0200

> On Mon, 25 Sep 2006, [email protected] wrote:

>> ist there a way to prevent a file being edited with mcedit by different
>> users at the same time?

> The MC editor has support for so called advisory locking. This
> means that a lock is not enforced (say at the OS level) and
> thus anyone can modify the file at any time. This locking scheme
> relies on the fact that different processes trying to modify the
> file will notice that a lock exists and act accordingly. In the
> case of MC the lock is a dead symlink named in a specific way and
> whose target contains the owner, the hostname and the pid of
> the processes which locked the file. This locking scheme is
> recognized by Jed and Emacs - maybe others too.

Where is the dead symlink located?
If one user opens a file with mcedit for editing and another user
does the same with mcedit should he get a message about this fact?

The mc version is 4.5.51 wiht RedHat 7.2




_______________________________________________
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc
<Prev in Thread] Current Thread [Next in Thread>