There's more than one way to do things | |
PerlMonks |
RE: (atl: about exceptions) RE: RE: race condition? - flock and $SIG{ALRM}by Zarathustra (Beadle) |
on Sep 19, 2000 at 21:33 UTC ( [id://33141]=note: print w/replies, xml ) | Need Help?? |
if you catch the exception instead of letting the process die, youŽll have to close the file yourself to get rid of the lock. Otherwise you might block other processes in the (rather rare) case the race condition occurs. Hey, thanks - you're absolutely right. That's one bit I had completely over looked... Good eye!
In Section
Seekers of Perl Wisdom
|
|