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
signature.asc
Description: Digital signature