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

Re: flock and read-ahead buffering on input

by eyepopslikeamosquito (Chancellor)
on Apr 17, 2014 at 22:34 UTC ( #1082687=note: print w/ replies, xml ) Need Help??


in reply to flock and read-ahead buffering on input

FWIW, I have successfully used Perl flock on both Unix (many flavors) and Windows for many years. Essentially, I use the approach described here. I found that using a separate zero-size lock file to (advisory) lock the (whole) file being updated, rather than attempting to lock the file being changed, improved robustness and overall simplicity of the code, especially on Windows, where I ran into a number of glitches when attempting to lock the file being modified.


Comment on Re: flock and read-ahead buffering on input

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2015-08-04 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (64 votes), past polls