propagate keyboard interrupts from worker threads

Review Request #2143 - Created April 30, 2015 and submitted

Information
Nick Howard (Twitter)
pants
1473
4135a0f...
Reviewers
pants-reviews
benjyw, davidt, stuhood, zundel

If a worker thread happens to be the active thread, Ctrl-C will kill it, but not the pants process because the interrupt isn't propagated to the main thread. This changes the WorkerPool s.t. it's work definition will intercept a keyboard interrupt and interrupt main.

Wrote a regression test, made it pass, CI baking on PR.

Nick Howard (Twitter)
Eric Ayers
David Taylor
Stu Hood
Nick Howard (Twitter)
Review request changed

Status: Closed (submitted)

Change Summary:

merged at 0300c22c98fd486c7571e343dea76fc8f2db3152

Benjy Weinberger
Ship It!
Loading...