summaryrefslogtreecommitdiff
path: root/client/main.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 09:59:34 -0700
commite18f43aa542caa51ea61756432675239fe51d49d (patch)
treeb9608c11e4ae23a7369d42d29009494f1180c9e8 /client/main.cpp
parent980ec2e76be0f647c930c7a420a1da719dd1c9ee (diff)
downloadadb-e18f43aa542caa51ea61756432675239fe51d49d.tar.gz
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
Diffstat (limited to 'client/main.cpp')
0 files changed, 0 insertions, 0 deletions