Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: How bad is $SIG{__DIE__} really? (global)

by tye (Sage)
on Oct 12, 2016 at 03:36 UTC ( [id://1173788]=note: print w/replies, xml ) Need Help??


in reply to Re: How bad is $SIG{__DIE__} really?
in thread How bad is $SIG{__DIE__} really?

If you clean up in destructors, then you don't have to try to trap global events. Having a non-global thing (such as your module) try to trap global events is usually a pretty bad idea, as the methods for trapping such things don't have built-in support for multiple handlers.

- tye        

  • Comment on Re^2: How bad is $SIG{__DIE__} really? (global)

Replies are listed 'Best First'.
Re^3: How bad is $SIG{__DIE__} really? (global)
by stevieb (Canon) on Oct 12, 2016 at 12:36 UTC

    You're absolutely right tye. I suppose in my case I'd only have to watch for $SIG{INT} (as DESTROY() isn't called on the interrupt signal), and not $SIG{__DIE__}.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-26 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found