Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: File Locking Tricks and Traps

by Anonymous Monk
on Mar 06, 2003 at 12:45 UTC ( [id://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
    newrisedesigns.com

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-16 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found