diff options
author | maxim <maxim@FreeBSD.org> | 2002-03-14 11:02:35 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2002-03-14 11:02:35 +0000 |
commit | 1bda6219a26483fe931cfe705c2614da69e2fc73 (patch) | |
tree | 10cef501262684e6eaef6278cf40471d8d5e08db /lib/libc/sys | |
parent | 2de0b2ebe2d49057decb798bc087e8586d152e20 (diff) | |
download | FreeBSD-src-1bda6219a26483fe931cfe705c2614da69e2fc73.zip FreeBSD-src-1bda6219a26483fe931cfe705c2614da69e2fc73.tar.gz |
Clarify fcntl(2) and flock(2) interoperability.
PR: docs/23353
Reviewed by: ru, dillon
Approved by: ru
MFC after: 3 days
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/fcntl.2 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2 index 2f70e72..41184b3 100644 --- a/lib/libc/sys/fcntl.2 +++ b/lib/libc/sys/fcntl.2 @@ -335,7 +335,13 @@ Note that .Xr flock 2 and .Xr fcntl 2 -locks may be safely used concurrently. +locks may be safely used concurrently but +.Fn fcntl F_GETLK +returns \-1 in +.Fa l_pid +if the process holding a blocking lock previously locked the +file descriptor by +.Xr flock 2 . .Pp All locks associated with a file for a given process are removed when the process terminates. |