Add a missing mode flag adjustment to Console::set_block
authorMikko Rasa <tdb@tdb.fi>
Sat, 2 Dec 2017 14:32:33 +0000 (16:32 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 2 Dec 2017 14:32:33 +0000 (16:32 +0200)
source/io/console.cpp

index aee02e262d08609964c8b818b5a49ae7996b8661..e70f31d6a4aa21e8d8498559200423fc3a667f5c 100644 (file)
@@ -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);
 }