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.
In reply to Re: (it's dumb) Re: DON'T USE THIS CODE
by valdez
in thread File::DumbLock
by PodMaster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |