I'm not surprised that $console->GenerateCtrlEvent(); doesn't affect the child process. Any console handle you have in your parent process is unlikely to have much effect upon your child process. If you were creating the child yourself and setting all the right flags and permissions on the CreateProcess() you might be able to affect the child using a handle in the parent, but not otherwise.
Try kill 21, $pid;. If that gets through to the child process, I may have an explanation for you.
In reply to Re: Need a reliable way to send SIGINT to a perl process on 5.8.8/windows XPpro
by BrowserUk
in thread Need a reliable way to send SIGINT to a perl process on 5.8.8/windows XPpro
by fwashbur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |