in reply to lock files vs. non-predictable file names
Also, replace system touch.. with just
No separate process required that way. Better security. Ditto with unlink instead of system rm.open DUH, ">/tmp/some.file"; close DUH;
And, you really don't want to use a sentinel file like that. See my Highlander - allow only one invocation at a time of an expensive CGI script as a model to use flock with a sentinel file.
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE (tilly) 2: lock files vs. non-predictable file names
by tilly (Archbishop) on Aug 26, 2000 at 01:23 UTC | |
by RuphSkunk (Acolyte) on Aug 26, 2000 at 01:57 UTC | |
|
RE: Re: lock files vs. non-predictable file names
by RuphSkunk (Acolyte) on Aug 26, 2000 at 01:23 UTC |