Therefore, when the server is busy, and the semaphore lock fails, the counter file is clobberred by another instance of the prog.
No. The code says:
flock(SEM, LOCK_EX) || die "Lock failed: $!"
If a lock fails, the program exits, so it can't clobber.
Abigail
In reply to Re: Mysterious Disapperance of file contents
by Abigail-II
in thread Mysterious Disapperance of file contents
by Gorby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |