Handling of SIGINT

David Golden xdaveg at gmail.com
Thu Feb 19 17:34:45 GMT 2009


On Thu, Feb 19, 2009 at 12:18 PM, Andy Armstrong <andy at hexten.net> wrote:
> Why isn't the SIGINT going to the test script?

I think on Win32, at least, SIGINT goes to everything on the console
simultaneously.  In CPAN::Reporter::Smoker, I just trap it and prompt
to continue -- I don't bother killing off the child process as I
assume it's dead.  (Possibly a bad assumption if the child process
traps SIGINT, too.)

So maybe check if the child is alive with kill 0 and if it is, kill it
with TERM or KILL.


-- David


More information about the tapx-dev mailing list