summaryrefslogtreecommitdiff
path: root/ext/io/console/console.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-13 14:33:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-13 14:33:36 +0000
commit73c6b9d453e2e83482b928c1447f42d35013d565 (patch)
treec73eeb251702bf5225c5f8b03e534e4c8d3daaab /ext/io/console/console.c
parenta7b0b52f09b63e8ffe28b0040b54ae71a4a829e4 (diff)
* ext/io/console/console.c (console_dev): console should be
unbuffered. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/console/console.c')
-rw-r--r--ext/io/console/console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index c2660d2ac94..635c2afc9bf 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;