|
|
| Just another Perl shrine | |
| PerlMonks |
RE: Locking a scriptby Penfold (Novice) |
| on Oct 18, 2000 at 10:40 UTC ( [id://37299]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
If it is a 'short period of time', you don't want to lock
the whole script, surely, just check whether a lockfile
exists/is locked before you enter your critical regeion,
and if it is, wait in some fashion for it to come free.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||