summaryrefslogtreecommitdiffstats
path: root/ext/pty
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-28 08:44:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-28 08:44:45 +0000
commit5a928a5496897d334534b7e025a5e41c9170aedd (patch)
treef5f2eb688ce0d96f6b51515366f2dbf048cc3639 /ext/pty
parent2228249a7b8f0fd37761a242bed50c3961666f4b (diff)
downloadruby-5a928a5496897d334534b7e025a5e41c9170aedd.tar.gz
ruby-5a928a5496897d334534b7e025a5e41c9170aedd.tar.xz
ruby-5a928a5496897d334534b7e025a5e41c9170aedd.zip
* eval.c (is_defined): defined?(Foo::Baz) should check constants
only, no methods. * eval.c (is_defined): should not dump core on defined?(a::b) where a is not a class nor a module. * object.c (Init_Object): remove dup and clone from TrueClass, FalseClass, and NilClass. * array.c (rb_ary_fill): Array#fill takes block to get the value to fill. * string.c (rb_str_to_i): to_i(0) auto-detects base radix. * array.c (rb_ary_initialize): fill by the block evaluation value if block is given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty')
-rw-r--r--ext/pty/pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index def44b6f4..b7c69fe40 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -433,7 +433,7 @@ pty_getpty(argc, argv, self)
rfptr->f = fdopen(info.fd, "r");
rfptr->path = strdup(SlaveName);
- wfptr->mode = rb_io_mode_flags("w");
+ wfptr->mode = rb_io_mode_flags("w") | FMODE_SYNC;
wfptr->f = fdopen(dup(info.fd), "w");
wfptr->path = strdup(SlaveName);