diff --git a/tdutils/td/utils/port/StdStreams.cpp b/tdutils/td/utils/port/StdStreams.cpp index 28b7c9aa..2d264dc2 100644 --- a/tdutils/td/utils/port/StdStreams.cpp +++ b/tdutils/td/utils/port/StdStreams.cpp @@ -147,6 +147,7 @@ class BufferedStdinImpl { BufferedStdinImpl(BufferedStdinImpl &&) = delete; BufferedStdinImpl &operator=(BufferedStdinImpl &&) = delete; ~BufferedStdinImpl() { + file_fd_.get_native_fd().set_is_blocking(true); file_fd_.move_as_native_fd().release(); }