Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Mysterious Disapperance of file contents

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


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

don't unlock the counterfile/lockfile, just close them. this flushes the buffers and releases locks and closes in a fairly atomic fashion....that's another bug in the original code.

Modern versions of Perl flush file buffers before locking or unlocking a file. This is even documented.

Abigail

  • Comment on Re: Mysterious Disapperance of file contents

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-06-06 20:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (41 votes). Check out past polls.

    Notices?