From: Mikko Rasa Date: Sat, 2 Dec 2017 14:32:33 +0000 (+0200) Subject: Add a missing mode flag adjustment to Console::set_block X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e9899d5300a1bf3ef72c16b307638dd0a43e11c0;p=libs%2Fcore.git Add a missing mode flag adjustment to Console::set_block --- diff --git a/source/io/console.cpp b/source/io/console.cpp index aee02e2..e70f31d 100644 --- a/source/io/console.cpp +++ b/source/io/console.cpp @@ -18,6 +18,7 @@ Console::Console(Stream s): void Console::set_block(bool b) { + adjust_mode(mode, M_NONBLOCK, !b); sys_set_blocking(handle, b); }