Handling of SIGINT

Alex Vandiver alexmv at MIT.EDU
Fri Feb 20 04:32:37 GMT 2009


On Thu, 2009-02-19 at 14:13 -0500, Alex Vandiver wrote:
> [snip]

Yeah, not actually directly prove's fault, though I wasn't imagining
things, in that the patch I provided did solve the problem.
  Specifically, when run under prove, prove gets the SIGINT, and closes
its open STDOUT and STDERR handles before the test script gets it.  A
stray "warn" in the SIGINT handler of the script hence threw a SIGPIPE,
and the code that cleans up the server (which runs in its own process
group) never ran.  Putting in the explicit handler which passes on the
SIGINT to the script hence solved the problem by keeping STDERR open for
just long enough, and then ending.
  So, euh, apologies for the spam.  *sigh*
 - Alex

-- 
Networking -- only one letter away from not working



More information about the tapx-dev mailing list