perlfunc.pod patch re flock via fcntl
authorTye McQueen <tye@metronet.com>
Thu, 20 Dec 2001 14:52:19 +0000 (08:52 -0600)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 21 Dec 2001 01:14:12 +0000 (01:14 +0000)
Message-Id: <200112202052.fBKKqKH16263@metronet.com>

p4raw-id: //depot/perl@13824

pod/perlfunc.pod

index e5f322c..1d65ca6 100644 (file)
@@ -1658,6 +1658,10 @@ are the semantics that lockf(3) implements.  Most if not all systems
 implement lockf(3) in terms of fcntl(2) locking, though, so the
 differing semantics shouldn't bite too many people.
 
+Note that the fcntl(2) emulation of flock(3) requires that FILEHANDLE
+be open with read intent to use LOCK_SH and requires that it be open
+with write intent to use LOCK_EX.
+
 Note also that some versions of C<flock> cannot lock things over the
 network; you would need to use the more system-specific C<fcntl> for
 that.  If you like you can force Perl to ignore your system's flock(2)