Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Blank data file

by dws (Chancellor)
on Jul 09, 2002 at 21:12 UTC ( [id://180609]=note: print w/replies, xml ) Need Help??


in reply to Blank data file

This increments a tracking counter for use by another script. The problem is that the data file goes blank randomly.

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://180609]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-25 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found