Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: singleton lock not reliable

by Fletch (Bishop)
on Jun 23, 2021 at 21:45 UTC ( [id://11134219]=note: print w/replies, xml ) Need Help??


in reply to singleton lock not reliable

As a debugging aid (since you're using ps to inspect things) if your OS allows you might change $0 to add extra info.

## Prelude use'es as before my $original_name = $0; $0 = qq{$original_name($$): TRYING TO GET LOCK}; ## Your open and flock lines . . . $0 = qq{$original_name($$): HOLDING FLOCK}; sleep;

The cake is a lie.
The cake is a lie.
The cake is a lie.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-26 06:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found