You can't separate the steps of "test for a lockfile" from "create a lockfile". It has to be an "atomic" operation. See the massive literature on this.
-- Randal L. Schwartz, Perl hacker
In reply to RE: Re: Locking a script
by merlyn
in thread Locking a script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |