|
|
1.1 root 1: Also added to vi is support for advisory file locking. Vi now assigns
2: a sharable lock when reading files, and an exclusive lock when editting
3: or writing on files.
4:
5: This means that if the file is open by another editor, vi will warn
6: the user of the conflict. Multiple readers of the same file are
7: of course never warned, but any attempt to modify the file from
8: vi will produce an error message. The error message can be
9: bypassed of course with "w!" et al.
10:
11: Note that seperate locks are kept on alternate and original files
12: used within vi, so all files referenced by vi are safe.
13:
14: The main motivation of this is to allow "safe" use of possibly
15: backgrounded vi's, but it is in general quite useful on a busy system.
16:
17: This also obviates things like vipw.
18:
19: The changes work on 4.2 as well, but watch out for flock system bugs.
20:
21: Bill Jolitz
22: Symmetric
23: [email protected]
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.