commit | 63de300094b90fb9c9a629a13e936c36cabc9781 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Oct 28 10:53:34 2016 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Fri Oct 28 10:53:34 2016 -0700 |
tree | 75580680dc1dec032221a4d0a27f3dd58847c4a1 | |
parent | 526ddfb172df9c5d3dbeedf100d271696418dac9 [diff] |
Do not use multiprocessing.Pool when --processes=1. Purpose of this change is not to save some execution time, but to avoid forking another process. In other applications that use a wrapper to call this python script, it is difficult to get overwritten file I/O functions work in a subprocess. So the wrapper will call warn.py with --processes=1. Test: run "warn.py --processes=1 build.log" Change-Id: I5998d5c70d81a456c86eb4002f444a4a60135477