./devel/p5-File-Flock, File::Flock - file locking with flock

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


Branch: CURRENT, Version: 2014.01nb1, Package name: p5-File-Flock-2014.01nb1, Maintainer: pkgsrc-users

Lock files using the flock() call. If the file to be locked does not exist,
then the file is created. If the file was created then it will be removed
when it is unlocked assuming it's still an empty file.

Locks can be created by new'ing a File::Flock object. Such locks are
automatically removed when the object goes out of scope. The unlock()
method may also be used.

lock_rename() is used to tell File::Flock when a file has been renamed (and
thus the internal locking data that is stored based on the filename should
be moved to a new name). unlock() the new name rather than the original
name.

Locks are released on process exit when the process that created the lock
exits. Subprocesses that exit do not remove locks. Use forget_locks() or
POSIX::_exit() to prevent unlocking on process exit.


Required to run:
[lang/perl5]

Required to build:
[devel/p5-AnyEvent] [devel/p5-List-MoreUtils] [devel/p5-Test-SharedFork] [pkgtools/cwrappers] [devel/p5-Data-Structure-Util] [devel/p5-IO-Event]

Master sites:

SHA1: 48e3698e812fc1d357c2092c7343871f8405e427
RMD160: 729f35e4eaf4305290d37d453c25080ce39bccc6
Filesize: 12.49 KB

Version history: (Expand)


CVS history: (Expand)


   2017-06-05 16:25:36 by Ryo ONODERA | Files touched by this commit (2298)
Log message:
Recursive revbump from lang/perl5 5.26.0
   2017-02-01 14:31:52 by Makoto Fujiwara | Files touched by this commit (8)
Log message:
Added BUILD_DEPENDS+= lines for make test
   2017-01-30 15:13:23 by Makoto Fujiwara | Files touched by this commit (3)
Log message:
Import p5-File-Flock-2014.01 as devel/p5-File-Flock.

Lock files using the flock() call. If the file to be locked does not exist,
then the file is created. If the file was created then it will be removed
when it is unlocked assuming it's still an empty file.

Locks can be created by new'ing a File::Flock object. Such locks are
automatically removed when the object goes out of scope. The unlock()
method may also be used.

lock_rename() is used to tell File::Flock when a file has been renamed (and
thus the internal locking data that is stored based on the filename should
be moved to a new name). unlock() the new name rather than the original
name.

Locks are released on process exit when the process that created the lock
exits. Subprocesses that exit do not remove locks. Use forget_locks() or
POSIX::_exit() to prevent unlocking on process exit.