commit | 4fd9509b77ba09bfe29e8bdda119fac6b879c436 | [log] [tgz] |
---|---|---|
author | Aaron Rosen <aaronorosen@gmail.com> | Mon Sep 22 16:10:46 2014 -0700 |
committer | Aaron Rosen <aaronorosen@gmail.com> | Tue Sep 23 09:37:39 2014 -0700 |
tree | 1b01949ff8b21cb2b7e59740b967ed897167fa13 | |
parent | 64fc93510ec3208f2ded961dd9c50d8c648f6ced [diff] |
Replace wait with communicate to avoid potential deadlock Wait can deadlock when using stdout=PIPE and/or stderr=PIPE and the child process generates enough output to a pipe such that it blocks waiting for the OS pipe buffer to accept more data. Use communicate() to avoid that. Change-Id: I452de95834a18a970ae78ab6c43d794151ce3300 closes-bug: 1372680