From 496d7b3e526a2f0e53da46293924e382940a948d Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 11 Sep 2018 19:57:50 +0300 Subject: [PATCH] Fix CE. GitOrigin-RevId: 34d4d5f28e8acebb39c4be9d3b7ecf631c017d3c --- tdutils/td/utils/port/StdStreams.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tdutils/td/utils/port/StdStreams.cpp b/tdutils/td/utils/port/StdStreams.cpp index 909dd3436..1fc4ad20e 100644 --- a/tdutils/td/utils/port/StdStreams.cpp +++ b/tdutils/td/utils/port/StdStreams.cpp @@ -90,7 +90,6 @@ class BufferedStdinImpl { td::thread read_thread_; std::atomic close_flag_{false}; - void read_loop() { while (!close_flag_) { auto slice = writer_.prepare_append(); @@ -106,7 +105,7 @@ class BufferedStdinImpl { } Result read(MutableSlice slice) { - auto native_fd = info_.native_fd().io_handle(); + auto native_fd = info_.native_fd().fd(); DWORD bytes_read = 0; auto res = ReadFile(native_fd, slice.data(), narrow_cast(slice.size()), &bytes_read, nullptr); if (res) { @@ -114,7 +113,6 @@ class BufferedStdinImpl { } return OS_ERROR(PSLICE() << "Read from [fd = " << native_fd << "] has failed"); } - }; void BufferedStdinImplDeleter::operator()(BufferedStdinImpl *impl) { impl->close();