diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/io/console/console.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c index c2660d2ac9..635c2afc9b 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -587,7 +587,9 @@ console_dev(VALUE klass) fptr->f2 = ofptr->f; ofptr->f = 0; # endif + optr->mode |= FMODE_SYNC; #endif + fptr->mode |= FMODE_SYNC; rb_const_set(klass, id_console, con); } return con; |