Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: singleton lock not reliable

by stevieb (Canon)
on Jun 25, 2021 at 01:36 UTC ( [id://11134268]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    print "procID: $lock\n";
    
    sleep 5;
    
  2. or download this
    spek@scelia ~/scratch $ perl lock.pl
    procID: 21241
    
  3. or download this
    spek@scelia ~/repos/ipc-shareable $ perl ~/scratch/lock.pl
    spek@scelia ~/repos/ipc-shareable $
    
  4. or download this
    spek@scelia ~/repos/ipc-shareable $ perl ~/scratch/lock.pl
    procID: 21339
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-28 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found