From 5ee76d47e12c3bcaf088483456470698720c082d Mon Sep 17 00:00:00 2001
From: "pjohnson@google.com"
 <pjohnson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Mon, 28 Jul 2008 20:57:10 +0000
Subject: [PATCH] Make sure the child process terminates before returning from
 process_utils.RunCommandFull.

BUG=1295708

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43 0039d316-1c4b-4281-b951-d872f2087c98
---
 tools/python/google/process_utils.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/python/google/process_utils.py b/tools/python/google/process_utils.py
index 966fdf6c5e851..acfc59c674541 100644
--- a/tools/python/google/process_utils.py
+++ b/tools/python/google/process_utils.py
@@ -130,6 +130,9 @@ def RunCommandFull(command, verbose=True, collect_output=False,
       sys.stdout.flush()
     line = read_from.readline()
 
+  # Make sure the process terminates.
+  proc.wait()
+
   if not verbose:
     out.close()
   return (proc.returncode, output)
-- 
GitLab