Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by valdez (Monsignor)
on Sep 16, 2002 at 13:57 UTC ( #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? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2023-03-21 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (59 votes). Check out past polls.

    Notices?