Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: File Locking Tricks and Traps

by Anonymous Monk
on Mar 06, 2003 at 12:45 UTC ( #240873=note: print w/ replies, xml ) Need Help??


in reply to File Locking Tricks and Traps

You missed a ton of issues that cause lots of fun. For instance you sometimes cannot lock a file for unexpected reasons. People often don't check $!, and will take a while to track down that. (People who don't check failure are simply hosed.)

Another biggie is that people close a file while they have locks on it open. This may happen for them unexpectedly (eg they have locked a dbm which closes and opens the file behind their back) or because they don't realize that this loses the lock. (Opening the file on a second filehandle and closing that loses the lock on the first still-open filehandle. So that attempted workaround fails!)

Otherwise useful if basic.


Comment on Re: File Locking Tricks and Traps
Re: Re: File Locking Tricks and Traps
by newrisedesigns (Curate) on Mar 06, 2003 at 13:52 UTC

    Of course it's basic. Did you expect a 10 minute talk to go into incredible detail about file locking? It's just not possible.

    Unfortunately, I prepared 15 minutes' worth of material for a 10 minute talk.

    So that's more than Dominus should have offered.

    John J Reiser
    newrisedesigns.com

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2014-10-21 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (109 votes), past polls