Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: How to pass CTRL-C to child script only

by lidden (Curate)
on Aug 23, 2010 at 14:43 UTC ( #856721=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to pass CTRL-C to child script only
in thread How to pass CTRL-C to child script only

In script A do:
$SIG{INT} = sub { kill 2, $pid_of_scriptB;};

Should work, not tested.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2023-11-29 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?