From eceaee47052a8777cd3f9edd1c8e94313dd8584d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 20 Feb 2014 08:34:28 +0100 Subject: [PATCH] fcntl.2: Warn that F_GETLK info may already be out of date when the call returns Signed-off-by: Michael Kerrisk --- man2/fcntl.2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/man2/fcntl.2 b/man2/fcntl.2 index 73684609e..12b308192 100644 --- a/man2/fcntl.2 +++ b/man2/fcntl.2 @@ -58,7 +58,7 @@ .\" 2010-06-17, Michael Kerrisk .\" Document F_SETPIPE_SZ and F_GETPIPE_SZ. .\" -.TH FCNTL 2 2014-01-21 "Linux" "Linux Programmer's Manual" +.TH FCNTL 2 2014-02-20 "Linux" "Linux Programmer's Manual" .SH NAME fcntl \- manipulate file descriptor .SH SYNOPSIS @@ -352,6 +352,9 @@ fields of and sets .I l_pid to be the PID of the process holding that lock. +Note that the information returned by +.BR F_GETLK +may already be out of date by the time the caller inspects it. .P In order to place a read lock, .I fd