develooper Front page | perl.perl5.porters | Postings from December 2001

perlfunc.pod patch re flock via fcntl

From:
Tye McQueen
Date:
December 20, 2001 12:53
Subject:
perlfunc.pod patch re flock via fcntl
Message ID:
200112202052.fBKKqKH16263@metronet.com
--- perl571/pod/perlfunc.pod	Thu Apr 05 15:53:29 2001
+++ perl571.tye/pod/perlfunc.pod	Thu Dec 20 12:47:08 2001
@@ -1626,6 +1626,10 @@
 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)



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About