I'm not surprised that $console->GenerateCtrlEvent(); doesn't affect the child process.
According to the documentation for the underlying function (GenerateConsoleCtrlEvent), the signal is generated in all processes that share the console of the calling process when the process group id parameter is 0 like it is here. (If the parameter is not zero, all the processes in the specified process group are affected.) The child should be affected, meaning its event handler should be called if one was set.
By the way, this function can be called as a static method: Win32::Console->GenerateCtrlEvent();. It's not really a console method at all.
In reply to Re^2: Need a reliable way to send SIGINT to a perl process on 5.8.8/windows XPpro
by ikegami
in thread Need a reliable way to send SIGINT to a perl process on 5.8.8/windows XPpro
by fwashbur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |