The stupid question is the question not asked | |
PerlMonks |
Re^4: Ensuring only one copy of a perl script is running at a timeby ikegami (Patriarch) |
on Dec 19, 2006 at 18:12 UTC ( [id://590735]=note: print w/replies, xml ) | Need Help?? |
I find extremely rude posts that do nothing but contradict the parent when the poster could have verified that the parent was correct. You're wrong. flock does NOT use its own advisory locking. If flock implemented some kind of advisory locking, Windows's type command would know nothing of it, yet it can't read a file locked using flock.
outputs
Tested with 5.6.0, 5.6.1, 5.8.0 and 5.8.8. Update: Updated to show that type works when the file isn't locked by flock.
In Section
Seekers of Perl Wisdom
|
|