in reply to Re: Re: Flocking and In-place editing
in thread Flocking and In-place editing
Of course, this only protects you from other instances of the same program, or other programs that use the same mechanism.open LCK, "$file.lck"; flock(LCK, LOCK_EX); # operate on how ever many files here flock(LCK, LOCK_UN); close LCK;
--Bob Niederman, http://bob-n.com
All code given here is UNTESTED unless otherwise stated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ^4 Flocking and In-place editing
by BazB (Priest) on Jan 27, 2004 at 09:09 UTC |