Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: sending signal to self with kill on windows (recursive sig-handler)

by LanX (Chancellor)
on Dec 30, 2012 at 21:12 UTC ( #1010961=note: print w/replies, xml ) Need Help??


in reply to Re: sending signal to self with kill on windows (updated);
in thread sending signal to self with kill on windows

> I think this demonstrates that the Perl Windows sig emulation has code to prevent a process from attempting to signal itself:

Definitely! I had this at one of my projects...

My face and all my hairs went pale, when I realized that a young colleague of mine called warn within $SIG{__WARN__}-handler.

As it turned out Perl was (since 5.8 IIRC) idiot proof. It locally resets signal handler redirections before calling them.

My colleague insisted that I exaggerated, because she "tested" (i.e ran) it once before committing into production.

Her warn did depend on an if clause and "production" meant a central module of a mod-perl environment...

Cheers Rolf

UPDATE:

from warn

Most handlers must therefore make arrangements to actually display the warnings that they are not prepare +d to deal with, by calling "warn" again in the handler. Not +e that this is quite safe and will not produce an endless loop +, since "__WARN__" hooks are not called from inside one.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010961]
help
Chatterbox?
[Corion]: I guess my question is, has anybody worked with React, Ember, Angular (v2, v4, v.whatever) or any other JS client-side dynamic rendering/virtual DOM thingie and found a simple, single-file solution like jQuery?
[sierpinski]: Corion I haven't -- but it sounds like you could corner the market on such a tool if you desired.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-03-27 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (321 votes). Check out past polls.