summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ConnectionFileDescriptor.cpp
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2010-12-13 20:05:03 +0000
committerCaroline Tice <ctice@apple.com>2010-12-13 20:05:03 +0000
commit01cb3ea2ee223b71d7e7c970bc57222d0e45f01e (patch)
treea2146846f67ea5fbf5b9333f5da24f6a158d48d7 /lldb/source/Core/ConnectionFileDescriptor.cpp
parent2d434e594ef9f06b3b21ccee1ddee83a2183a9d1 (diff)
downloadbcm5719-llvm-01cb3ea2ee223b71d7e7c970bc57222d0e45f01e.tar.gz
bcm5719-llvm-01cb3ea2ee223b71d7e7c970bc57222d0e45f01e.zip
Revert a small but important part of the EOF handling code that Greg
missed in his previous revert. llvm-svn: 121712
Diffstat (limited to 'lldb/source/Core/ConnectionFileDescriptor.cpp')
-rw-r--r--lldb/source/Core/ConnectionFileDescriptor.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Core/ConnectionFileDescriptor.cpp b/lldb/source/Core/ConnectionFileDescriptor.cpp
index c333d06b176..da199b99b5e 100644
--- a/lldb/source/Core/ConnectionFileDescriptor.cpp
+++ b/lldb/source/Core/ConnectionFileDescriptor.cpp
@@ -155,9 +155,13 @@ 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.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;
}
else if (bytes_read < 0)
{
OpenPOWER on IntegriCloud