|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^2: Ensuring only one copy of a perl script is running at a timeby ikegami (Pope) |
| on Dec 19, 2006 at 17:32 UTC ( #590713=note: print w/ replies, xml ) | Need Help?? |
|
That's wrong. It suffers from a race condition.
If you use flock, then it's just an extention of what the OP posted. ( Oops! Seems like tye posted something similar when I was writing this node. )
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||