fcntl.2: Warn that F_GETLK info may already be out of date when the call returns

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-02-20 08:34:28 +01:00
parent dc45cae328
commit eceaee4705
1 changed files with 4 additions and 1 deletions

View File

@ -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