./devel/p5-File-FlockDir, FlockDir - override perl flock() for network or portability purposes

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2007Q2, Version: 1.02nb2, Package name: p5-File-FlockDir-1.02nb2, Maintainer: pkgsrc-users

A flock module for Windows9x and other systems lacking
a good perl flock() function (not platform specific)

Rationale: flock on Win95/98 is badly broken but
perl code needs to be portable. In addition, sometimes code written
to use flock() on one workstation needs to be ported to running on
several networked servers and clients. One way to allow this is
to override perl's open(), flock(), and close(). We then get an
absolute file specification for all opened files and and use it in
a hash to create a unique lock for the file using the File::LockDir
module from the "Perl Cookbook", by Christiansen and Torkington
(O'Reilly, 1998). This module may be included in the CPAN
distribution but belongs to those authors. New code has been
kept to a minimum.


Master sites: (Expand)

SHA1: a85b8ad825a2bf81020affcf242fd2b4aa0e8654
RMD160: 5a8b5219c017e745f77c8f230dab8cb34c0d9495
Filesize: 5.918 KB

Version history: (Expand)