Stop read thread of Communication on EOF
authorTamas Berghammer <tberghammer@google.com>
Mon, 20 Apr 2015 09:52:47 +0000 (09:52 +0000)
committerTamas Berghammer <tberghammer@google.com>
Mon, 20 Apr 2015 09:52:47 +0000 (09:52 +0000)
commit35856696b8d42536052e5c757e3ee2b133261e0f
tree744b89ab0453ec725b2f2e82e77c7706d2b2cac8
parent84adf3ff1579134a4b019a09ba69504d5de1fe05
Stop read thread of Communication on EOF

Previously the read thread was only stopped if CloseOnEOF was set on the
communication channel. It caused it to spin in case of an EOF because
::select() always reported that we can read from the file descriptor.
This CL change this behavior with stopping the read thread on EOF but do
a disconnect only if CloseOnEOF is enabled.

Differential revision: http://reviews.llvm.org/D9077

llvm-svn: 235291
lldb/source/Core/Communication.cpp