Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Stopping hanging commands (evals) within debugger

by LanX (Canon)
on Dec 17, 2012 at 00:35 UTC ( #1009103=note: print w/ replies, xml ) Need Help??


in reply to Re: Stopping hanging commands (evals) within debugger
in thread Stopping hanging commands (evals) within debugger

Excellent, testscript works fine! =)

$|=1; $_code=' sleep 1, print for (1..100)'; eval { local $SIG{ INT } = sub{die;}; eval $_code }; print "after interrupt"; eval $_code; # again w/o wrapper

I'll post again when I got it integrated within the debugger!

Cheers Rolf


Comment on Re^2: Stopping hanging commands (evals) within debugger
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-07-06 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls