diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-11 03:41:13 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-11 03:41:13 +0000 |
commit | 0d746627af624e1fca683b726ee2de86127fa16c (patch) | |
tree | 398230d3839dea5485186b0b447ae9ac929a5b2f /io.c | |
parent | 688e1b34a6877b7f4aeea9cd1dbf6698ce3652b3 (diff) | |
download | ruby-0d746627af624e1fca683b726ee2de86127fa16c.tar.gz |
* io.c (pipe_open): Remove fflush(stdin). it's no effect.
Pointed out by Ikegami Daisuke <ikegami.da@gmail.com>.
Thank you.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -5260,7 +5260,6 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode, pid = rb_fork_err(&status, popen_exec, &arg, arg.execp->redirect_fds, errmsg, sizeof(errmsg)); } else { - fflush(stdin); /* is it really needed? */ pid = rb_fork(&status, 0, 0, Qnil); if (pid == 0) { /* child */ rb_thread_atfork(); |