Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: File Locking Tricks and Traps

by Nitrox (Chaplain)
on Mar 11, 2003 at 16:42 UTC ( #242080=note: print w/ replies, xml ) Need Help??

in reply to File Locking Tricks and Traps

On slide 6 this line:

open SELF, "< $0" or die ...;
Should be:
open SELF, "+< $0" or die ...;
Due to the fact that some OS's won't allow an exclusive lock on a file that has been opened for read only.


Comment on Re: File Locking Tricks and Traps
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://242080]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2016-02-08 06:44 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (268 votes), past polls