in reply to Need a reliable way to send SIGINT to a perl process on 5.8.8/windows XPpro
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need a reliable way to send SIGINT to a perl process on 5.8.8/windows XPpro
by ikegami (Patriarch) on Mar 09, 2007 at 03:18 UTC | |
by BrowserUk (Patriarch) on Mar 09, 2007 at 10:25 UTC | |
by ikegami (Patriarch) on Mar 09, 2007 at 18:19 UTC | |
by fwashbur (Sexton) on Mar 09, 2007 at 21:16 UTC | |
|
Re^2: Need a reliable way to send SIGINT to a perl process on 5.8.8/windows XPpro
by fwashbur (Sexton) on Mar 09, 2007 at 21:37 UTC | |
|
Re^2: Need a reliable way to send SIGINT to a perl process on 5.8.8/windows XPpro
by fwashbur (Sexton) on Mar 09, 2007 at 22:59 UTC |