fcntl.2: Clarify cases of conflict between traditional record and OFD locks

Verified by experiment on Linux 3.15 and 3.19rc4.

Acked-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-01-21 18:42:53 +01:00
parent e81e6a4721
commit ee6627733a
1 changed files with 4 additions and 1 deletions

View File

@ -498,7 +498,10 @@ and are only automatically released on the last close
of the open file description,
instead of being released on any close of the file.
.PP
Open file description locks always conflict with traditional record locks,
Conflicting lock combinations
(i.e., a read lock and a write lock or two write locks)
where one lock is an open file description lock and the other
is a traditional record lock conflict
even when they are acquired by the same process on the same file descriptor.
Open file description locks placed via the same open file description