mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-10-15 13:02:40 +08:00
31a7be561ef34c134447d92a3d391b17ecd7c790
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
Description
Languages
Python
99.2%
Shell
0.8%