From e9899d5300a1bf3ef72c16b307638dd0a43e11c0 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 2 Dec 2017 16:32:33 +0200 Subject: [PATCH] Add a missing mode flag adjustment to Console::set_block --- source/io/console.cpp | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.45.2