diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-22 08:27:48 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-22 08:27:48 +0000 |
commit | c611be9124f8a41e2be155760464fac5cc9195e8 (patch) | |
tree | 4b9ecb7ca518b37bca470a0c94446897d73a1c31 /io.c | |
parent | b31a4e2f7179a0a1bcf020cf58f2e34bf359153d (diff) | |
download | ruby-c611be9124f8a41e2be155760464fac5cc9195e8.tar.gz ruby-c611be9124f8a41e2be155760464fac5cc9195e8.tar.xz ruby-c611be9124f8a41e2be155760464fac5cc9195e8.zip |
* io.c (pipe_open): remove unnecessary flush before fork.
a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>
in [ruby-dev:36840].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); |