Colin Cross 31a7be561e Catch exceptions in project list generator
If the generator that produces per-project worker arguments raises an
exception it triggers python bug http://bugs.python.org/issue8296.
Rewrite the generator expression as a generator function, and catch
Exceptions and KeyboardInterrupts to end the iteration.

Also add a pool worker initializer to disable SIGINT to prevent
KeyboardInterrupts inside multiprocessing.Pool in the worker threads
causing the same problem.

Fixes easy-to-reproduce hangs when hitting ctrl-c during
repo forall -c echo

Change-Id: Ie4a65b3e1e07a64ed6bb6ff20f3912c4326718ca
2015-05-13 11:09:38 -07:00
..
2013-04-18 21:35:49 +05:30
2014-10-17 15:45:57 -04:00
2012-11-14 12:09:38 +09:00
2013-04-18 21:35:49 +05:30
2013-04-18 21:35:49 +05:30
2012-09-18 09:54:57 +02:00
2015-04-04 21:21:49 +01:00