summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorghelmer <ghelmer@FreeBSD.org>1999-05-04 17:45:12 +0000
committerghelmer <ghelmer@FreeBSD.org>1999-05-04 17:45:12 +0000
commitdbe880b62241dda4d345077228d669b7be47377f (patch)
tree8addb10d8120f4aa42121dfc0ce05895f3a5a7e4 /lib
parent7cdda5c87e9d1dc433401e10305cdd026dc7f3c6 (diff)
downloadFreeBSD-src-dbe880b62241dda4d345077228d669b7be47377f.zip
FreeBSD-src-dbe880b62241dda4d345077228d669b7be47377f.tar.gz
Note the effect of close(2) on fcntl(2) record locks.
PR: docs/3522
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/close.210
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/sys/close.2 b/lib/libc/sys/close.2
index 1a66e39..0e84526 100644
--- a/lib/libc/sys/close.2
+++ b/lib/libc/sys/close.2
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)close.2 8.2 (Berkeley) 4/19/94
-.\" $Id$
+.\" $Id: close.2,v 1.8 1997/02/22 15:03:47 peter Exp $
.\"
.Dd April 19, 1994
.Dt CLOSE 2
@@ -59,6 +59,14 @@ associated naming information and queued data are discarded;
on the last close of a file holding an advisory lock
the lock is released (see further
.Xr flock 2 ) .
+However, the semantics of System V and
+.St -p1003.1-88
+dictate that all
+.Xr fcntl 2
+advisory record locks associated with a file for a given process
+are removed when
+.Em any
+file descriptor for that file is closed by that process.
.Pp
When a process exits,
all associated file descriptors are freed, but since there is
OpenPOWER on IntegriCloud