Make sure the child process terminates before returning from process_utils.RunCommandFull.
BUG=1295708
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5ee76d47e12c3bcaf088483456470698720c082d
diff --git a/google/process_utils.py b/google/process_utils.py
index 966fdf6..acfc59c 100644
--- a/google/process_utils.py
+++ b/google/process_utils.py
@@ -130,6 +130,9 @@
sys.stdout.flush()
line = read_from.readline()
+ # Make sure the process terminates.
+ proc.wait()
+
if not verbose:
out.close()
return (proc.returncode, output)