diff options
Diffstat (limited to 'lldb/source/Core/ConnectionFileDescriptor.cpp')
-rw-r--r-- | lldb/source/Core/ConnectionFileDescriptor.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lldb/source/Core/ConnectionFileDescriptor.cpp b/lldb/source/Core/ConnectionFileDescriptor.cpp index 30cab9f4c32..1b653780516 100644 --- a/lldb/source/Core/ConnectionFileDescriptor.cpp +++ b/lldb/source/Core/ConnectionFileDescriptor.cpp @@ -155,13 +155,9 @@ ConnectionFileDescriptor::Read (void *dst, size_t dst_len, ConnectionStatus &sta Error error; ssize_t bytes_read = ::read (m_fd, dst, dst_len); if (bytes_read == 0) -// Disable the end-of-file special handling stuff for now. Hopefully re-instate it (properly fixed) at a -// later date: { -// error.Clear(); // End-of-file. Do not automatically close; pass along for the end-of-file handlers. -// status = eConnectionStatusEndOfFile; - error.SetErrorStringWithFormat("End-of-file.\n"); - status = eConnectionStatusLostConnection; + error.Clear(); // End-of-file. Do not automatically close; pass along for the end-of-file handlers. + status = eConnectionStatusEndOfFile; } else if (bytes_read < 0) { |