|Pathologically Eclectic Rubbish Lister|
pesky lockfile stays lockedby traxlog (Scribe)
|on May 17, 2004 at 11:36 UTC||Need Help??|
traxlog has asked for the
wisdom of the Perl Monks concerning the following question:
I am using the locking method described in the Camel book before opening my DB_File databases
At the end of the program I call :
Unfortunately the lock not always released thus stopping further executions of the program (and any other programs that rely on the same lock). The only way to remedy this is to ftp the server and delete the lockfile.
I've been trying tactics around this such as timing out the operation, unlinking the lockfile, exiting immediately and asking the user (very politely) to try again. No elegant tactic, I know, but nevertheless effective.
Any suggestions esteemed ones?