Fix bug where an additional O packet is sent after inferior exits.
authorChaoren Lin <chaorenl@google.com>
Tue, 7 Apr 2015 18:45:03 +0000 (18:45 +0000)
committerChaoren Lin <chaorenl@google.com>
Tue, 7 Apr 2015 18:45:03 +0000 (18:45 +0000)
commit32c7265a1200d5a1462fd654c914b841dcaac5ba
treeb0c7f5a2cac38a2afca509680c1d4b0e5ec8290b
parent3d66c863cfd919fe10e56626364c9f9ecadeeedd
Fix bug where an additional O packet is sent after inferior exits.

Summary:
ConnectionFileDescriptor::Read was returning eConnectionStatusError instead of 0
on m_shutting_down, which caused the caller to think that some number of bytes
were read.

Reviewers: jingham, vharron, clayborg

Reviewed By: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D8850

llvm-svn: 234341
lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp