diff options
author | David Pursell <dpursell@google.com> | 2016-01-27 16:07:52 -0800 |
---|---|---|
committer | David Pursell <dpursell@google.com> | 2016-01-27 17:13:41 -0800 |
commit | 57dd5ae1e3004daec664263e24dc4dcf4475bb02 (patch) | |
tree | 3a567c2298b0ca277442e7357fc889c1e26d9dd7 /libutils/ProcessCallStack.cpp | |
parent | 8b999d894fc29d5f1bede1c233fe28e944c28ce9 (diff) |
adb: fix subprocess termination for legacy shell.
http://r.android.com/166419 changed `adb shell` behavior to not
allocate a remote PTY for non-interactive commands, but adbd relied on
having a PTY to properly terminate the subprocess.
One impact of this is that when using older versions of adb or passing
the -x flag, `adb screenrecord` wasn't properly terminating and closing
out the video file.
This CL restores the old behavior for legacy shell connections: always
use a PTY, but put it in raw mode if the client is doing local PTY
input/output processing itself.
Bug: http://b/26742824
Change-Id: I9ee630c0ff0d2d6a0db367387af7123deea79676
Diffstat (limited to 'libutils/ProcessCallStack.cpp')
0 files changed, 0 insertions, 0 deletions