From c611be9124f8a41e2be155760464fac5cc9195e8 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 22 Oct 2008 08:27:48 +0000 Subject: * io.c (pipe_open): remove unnecessary flush before fork. a patch from Kazuhiro NISHIYAMA in [ruby-dev:36840]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ io.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd7f1b362..5d5a7ae07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Oct 22 17:25:17 2008 Yukihiro Matsumoto + + * io.c (pipe_open): remove unnecessary flush before fork. + a patch from Kazuhiro NISHIYAMA + in [ruby-dev:36840]. + Wed Oct 22 16:27:57 2008 Nobuyoshi Nakada * vm_insnhelper.c (vm_yield_setup_args): should not drop arguments diff --git a/io.c b/io.c index bf893faaa..bfeefef43 100644 --- a/io.c +++ b/io.c @@ -4445,8 +4445,6 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode, } else { fflush(stdin); /* is it really needed? */ - rb_io_flush(rb_stdout); - rb_io_flush(rb_stderr); pid = rb_fork(&status, 0, 0, Qnil); if (pid == 0) { /* child */ popen_redirect(&arg); -- cgit