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

Re: A flock()alypse now

by perigeeV (Hermit)
on Jul 02, 2002 at 20:43 UTC ( #178994=note: print w/replies, xml ) Need Help??


in reply to A flock()alypse now

This should work fine for a single file. Semaphores are required for multiple file locking of course, but that was covered above. By openning the file twice with different filehandles you're just getting a different file descriptor to work with. flock locks files, not file descriptors. Even using system calls dup and fork just cause multiple references to the same lock.


Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2022-11-30 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?