You have a timing window in the code. Consider what happens if you execute open(file, ">$mailclicks); immediately before another process obtains a lock. They now read (and will later write) a blank file.
You might want to expand the lifetime of the lock to encompas the entire process.
In reply to Re: Blank data file
by dws
in thread Blank data file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |