SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-DB_File-Lock rpm build for : OpenSuSE. For other distributions click perl-DB_File-Lock.

Name : perl-DB_File-Lock
Version : 0.05 Vendor : obs://build_opensuse_org/home:monitoringslm
Release : 9.1 Date : 2017-04-25 17:13:43
Group : Development/Libraries/Perl Source RPM : perl-DB_File-Lock-0.05-9.1.src.rpm
Size : 0.02 MB
Packager : (none)
Summary : Locking with flock wrapper for DB_File
Description :
This module provides a wrapper for the DB_File module, adding locking.

When you need locking, simply use this module in place of DB_File and add
an extra argument onto the tie command specifying if the file should be
locked for reading or writing.

The alternative is to write code like:

open(LOCK, \"< $db_filename.lock\") or die;
flock(LOCK, LOCK_SH) or die;
tie(%db_hash, \'DB_File\', $db_filename, O_RDONLY, 0600, $DB_HASH) or die;
... then read the database ...
untie(%db_hash);
close(LOCK);

This module lets you write

tie(%db_hash, \'DB_File::Lock\', $db_filename, O_RDONLY, 0600, $DB_HASH, \'read\') or die;
... then read the database ...
untie(%db_hash);

This is better for two reasons:

(1) Less cumbersome to write.

(2) A fatal exception in the code working on the database which does not
lead to process termination will probably not close the lockfile and
therefore cause a dropped lock.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/monitoringslm:/perl/SLE_12_SP1/noarch

Content of RPM  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(DB_File::Lock)
perl-DB_File-Lock

Requires :
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1
perl = 5.18.2


Content of RPM :
/usr/lib/perl5/vendor_perl/5.18.2/DB_File
/usr/lib/perl5/vendor_perl/5.18.2/DB_File/Lock.pm
/usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-DB_File-Lock
/usr/share/doc/packages/perl-DB_File-Lock/Changes
/usr/share/doc/packages/perl-DB_File-Lock/README
/usr/share/man/man3/DB_File::Lock.3pm.gz

 
ICM