No such thing as a small change | |
PerlMonks |
Re^3: Preventing multiple instancesby davido (Cardinal) |
on Nov 23, 2022 at 18:30 UTC ( [id://11148335]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|