[ConnectionFileDescriptor] Add shutdown check in ::Write.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 27 Aug 2019 01:34:16 +0000 (01:34 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 27 Aug 2019 01:34:16 +0000 (01:34 +0000)
commitece176e0f6a9a3760358001fb39b308c8ffc5edc
tree5dc89d1aaf07d19deb8e65f3ee46250933a301bf
parent25abd0ebddc21e4452bbbb401c335979d5a45c42
[ConnectionFileDescriptor] Add shutdown check in ::Write.

The disconnect method sets the shutdown flag to true. This currently
only prevents any reads from happening, but not writes, which is
incorrect. Presumably this was just an oversight when adding
synchronization to the class. This adds the same shutdown check to the
Write method.

Over-the-shoulder reviewed by Jim!

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