================ @@ -59,7 +64,10 @@ Error OutputRedirector::RedirectTo(std::function<void(StringRef)> callback) { while (!m_stopped) { ssize_t bytes_count = ::read(read_fd, &buffer, sizeof(buffer)); // EOF detected. - if (bytes_count == 0) + if (bytes_count == 0 || + (bytes_count == sizeof(kCloseSentinel) && + std::memcmp(buffer, kCloseSentinel, sizeof(kCloseSentinel)) == 0 && + m_fd == kInvalidDescriptor)) ---------------- ashgti wrote:
Done. https://github.com/llvm/llvm-project/pull/126833 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits