On Mon, 25 Sep 2006, [email protected] wrote:
>> 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?
In the same directory as the file being edited.
> 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
That version doesn't support locking. Locking support was
added starting with MC 4.6.0.
Mc mailing list