Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: (it's dumb) Re: DON'T USE THIS CODE

by valdez (Monsignor)
on Sep 16, 2002 at 13:57 UTC ( [id://198245]=note: print w/replies, xml ) Need Help??


in reply to (it's dumb) Re: DON'T USE THIS CODE
in thread File::DumbLock

One example strategy could be unlink: you try to delete something and check for the result. If you succeeded, you obtained the lock. This approach makes things more complicated for stale locks...

Ciao, Valerio

update: thanks podmaster for the hint.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found