From ff8bc614345740a36c37c482b9ea280e58f7935e Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 3 Oct 2017 15:28:59 +0200 Subject: [PATCH] flock.2: Placing an exclusive lock over NFS requires the file is open for writing Reported-by: Petr Uzel Signed-off-by: Michael Kerrisk --- man2/flock.2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/man2/flock.2 b/man2/flock.2 index 2e38a9d08..2dce918b0 100644 --- a/man2/flock.2 +++ b/man2/flock.2 @@ -223,6 +223,8 @@ and locks .I do interact with one another over NFS. +It also means that in order to place an exclusive lock, +the file must be opened for writing. .PP Since Linux 2.6.37, .\" commit 5eebde23223aeb0ad2d9e3be6590ff8bbfab0fc2