Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Mysterious Disapperance of file contents

by Abigail-II (Bishop)
on Aug 29, 2003 at 12:51 UTC ( #287634=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Mysterious Disapperance of file contents
in thread Mysterious Disapperance of file contents

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2020-05-31 03:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (173 votes). Check out past polls.

    Notices?