in reply to send ctrl+c to open3?
The killfam is used to get all shells and children related to the $pid in question. Often, the $pid returned by open3, is just a shell used to run your actual program.
Here is how to grab cntrl-c in your main.
You can google for many examples of using Proc::Killfam, I won't repeat them here.# intercept CNTRL-C , kill open3, exit $SIG{INT} = sub { killfam 9,$pid; exit(0) };
|
|---|