Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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.

Replies are listed 'Best First'.
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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://240873]
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: (5)
As of 2019-10-16 06:47 GMT
Find Nodes?
    Voting Booth?