Syntactic Confectionery Delight | |
PerlMonks |
Re^3: singleton lock not reliableby stevieb (Canon) |
on Jun 28, 2021 at 13:52 UTC ( [id://11134394]=note: print w/replies, xml ) | Need Help?? |
Good, better, best! I released a new distribution, Script::Singleton that ensures only a single instance of a script can run at any time. No methods or flags to use, you simply:
That's it! LOCK is the glue/key that identifies the shared memory segment. As with my last update, send in a true value to get a warning if a second instance of a script tries to run but has to exit:
In Section
Seekers of Perl Wisdom
|
|