in reply to Need a reliable way to send SIGINT to a perl process on 5.8.8/windows XPpro

Perhaps you're doing this the wrong way, and you should rather try to kill it with Win32::Process, using KillProcess?
Win32::Process::KillProcess($pid, $exitcode)
Terminates any process identified by $pid. $exitcode will be set to the exit code of the process.

If I read this right, $pid should just be a number.

  • Comment on Re: Need a reliable way to send SIGINT to a perl process on 5.8.8/windows XPpro
  • Download Code

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 BrowserUk (Patriarch) on Mar 09, 2007 at 12: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:19 UTC
    We definitely don't want to kill the process, we want to run the interrupt handler first before we kill it. Manually doing CTRL-C works great, now we need to simulate that programmatically to do acceptance testing of our interrupt handler.