From: Gurusamy Sarathy Date: Wed, 2 Feb 2000 08:02:57 +0000 (+0000) Subject: flock() pod talks about "adding" in the sense of "or-ing" X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ea3105be5e2358251beae0304b59a16554680936;p=p5sagit%2Fp5-mst-13.2.git flock() pod talks about "adding" in the sense of "or-ing" p4raw-id: //depot/perl@4956 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index e40b31b..d4c2739 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1559,11 +1559,11 @@ in the way of your getting your job done.) OPERATION is one of LOCK_SH, LOCK_EX, or LOCK_UN, possibly combined with LOCK_NB. These constants are traditionally valued 1, 2, 8 and 4, but -you can use the symbolic names if import them from the Fcntl module, +you can use the symbolic names if you import them from the Fcntl module, either individually, or as a group using the ':flock' tag. LOCK_SH requests a shared lock, LOCK_EX requests an exclusive lock, and LOCK_UN -releases a previously requested lock. If LOCK_NB is added to LOCK_SH or -LOCK_EX then C will return immediately rather than blocking +releases a previously requested lock. If LOCK_NB is bitwise-or'ed with +LOCK_SH or LOCK_EX then C will return immediately rather than blocking waiting for the lock (check the return status to see if you got it). To avoid the possibility of miscoordination, Perl now flushes FILEHANDLE