GitOrigin-RevId: bc0e81dec7fed8ef1fa47a8c529bc2a3aee01b48
This commit is contained in:
Arseny Smirnov 2018-09-10 20:22:21 +03:00
parent 3266984243
commit 3e991d2464

View File

@ -53,7 +53,6 @@ class BufferedStdinImpl {
public: public:
BufferedStdinImpl() { BufferedStdinImpl() {
file_fd_ = FileFd::from_native_fd(NativeFd(Stdin().get_native_fd().raw())); file_fd_ = FileFd::from_native_fd(NativeFd(Stdin().get_native_fd().raw()));
file_fd_.get_native_fd().set_is_blocking(false);
read_thread_ = td::thread([this] { this->read_loop(); }); read_thread_ = td::thread([this] { this->read_loop(); });
} }
~BufferedStdinImpl() { ~BufferedStdinImpl() {