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 | a9a23756b5c0e2a791c718da7b388c0d6ef82ad2 (patch) | |
tree | 4b9ecb7ca518b37bca470a0c94446897d73a1c31 /io.c | |
parent | 5c0515f2e25bdebe4f27eb8d3df5761ad4304bd0 (diff) | |
download | ruby-a9a23756b5c0e2a791c718da7b388c0d6ef82ad2.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/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); |