Bug#478040: liblockfile-simple-perl: "-warn" option doesn't work

gregor herrmann gregoa at debian.org
Sat Apr 26 15:44:35 UTC 2008


On Sat, 26 Apr 2008 16:39:02 +0200, Adrian von Bidder wrote:

> (Ok, the upstream tag is just a guess.)

(Good idea.)
 
> LockFile::Simple->make(
>         -autoclean => 1,
>         -hold => 0,
>         -stale => 1,
>         -warn => 0)->lock('/var/lib/nihilist/db') || die "...";
> 
> so I can just forget about the lock and it will be removed for me when
> the program is done.  However, I get "WARNING: releasing 1 pending
> lock..." at program exit.  Setting -wfunc => undef instead of -warn
> solves the problem, but warn is documented to suppress warnings too.

Agreed, this behaviour is not really intuitive.
From a short look in the code the message comes from
LockFile::Manager which doesn't honour the 'warn' property.
 
I'll pass this issue on the the upstream author.

Cheers,
gregor
-- 
 .''`.   http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
 : :' :  debian gnu/linux user, admin & developer - http://www.debian.org/
 `. `'   member of https://www.vibe.at/ | how to reply: http://got.to/quote/
   `-    NP: Bob Dylan and Tom Petty: Knockin' On Heaven's Door
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20080426/724eea18/attachment.pgp 


More information about the pkg-perl-maintainers mailing list