Flush stdout and stderr prior to exiting child process.

This fixes a confusing bug that we ran into where the output from
certain child processes wouldn't appear when running `lint-all` via
`ssh` (without a tty) into the Vagrant environment.
This commit is contained in:
Christie Koehler 2016-08-16 17:26:59 -07:00 committed by Tim Abbott
parent 433cdfad57
commit 096b098410
1 changed files with 2 additions and 0 deletions

View File

@ -373,6 +373,8 @@ def run_parallel():
logging.info("start " + name)
result = func()
logging.info("finish " + name)
sys.stdout.flush()
sys.stderr.flush()
os._exit(result)
pids.append(pid)
failed = False