Handling of SIGINT
Andy Armstrong
andy at hexten.net
Thu Feb 19 17:40:33 GMT 2009
On 19 Feb 2009, at 17:34, David Golden wrote:
> 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.)
Ah.
> So maybe check if the child is alive with kill 0 and if it is, kill it
> with TERM or KILL.
Nothing's ever as simple as you think it's going to be, is it? :)
--
Andy Armstrong, Hexten
More information about the tapx-dev
mailing list