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 |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(DB_File::Lock)
perl-DB_File-Lock
Requires :