summaryrefslogtreecommitdiff
path: root/libutils/Unicode_test.cpp
diff options
context:
space:
mode:
authorDavid Pursell <dpursell@google.com>2016-06-06 09:37:16 -0700
committerDavid Pursell <dpursell@google.com>2016-06-06 12:56:52 -0700
commita6d56611404f2e1c0c9f4ab7c8471af0e80b2026 (patch)
treedb5d287000823cb9ba7b97924ccfd911d83be734 /libutils/Unicode_test.cpp
parent8c4076295ebd867d276636d673b9f8e6a8df01a6 (diff)
adbd: properly close subprocess pipes on Ctrl+C.
When non-interactive sessions exit via Ctrl+C, adbd sends SIGHUP to the child process to let it know to exit. However, adbd was not closing the pipes to the child process, so if the subprocess ignored SIGHUP and continued writing it could fill up the pipe and block forever while adbd waits for it to exit. This CL adds the necessary calls to close the subprocess pipe after sending SIGHUP. Bug: 28981563 Change-Id: I318e322e563241052648361172f4859c297837fb (cherry picked from commit f2aa186c7b0792ef4d3e106e2a03be5c3c215118)
Diffstat (limited to 'libutils/Unicode_test.cpp')
0 files changed, 0 insertions, 0 deletions