Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Preventing multiple instances

by davido (Cardinal)
on Nov 23, 2022 at 18:30 UTC ( [id://11148335]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Preventing multiple instances
in thread Preventing multiple instances

The lock is coterminous with the open filehandle / file descriptor unless released by LOCK_UN. A write by a process that ignores the lock doesn't release the lock, it just ignores it (which and breakage can occur). A write by the process that holds the lock also would not release the lock.

At least that's my recollection. The rules can be tricky though. And the fact that locks are advisory is both powerful and scary.


Dave

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-24 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found