From 0d746627af624e1fca683b726ee2de86127fa16c Mon Sep 17 00:00:00 2001 From: kosaki Date: Fri, 11 Nov 2011 03:41:13 +0000 Subject: * io.c (pipe_open): Remove fflush(stdin). it's no effect. Pointed out by Ikegami Daisuke . Thank you. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ io.c | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c72ef38f88..5ec0e70eed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Nov 11 12:36:37 2011 KOSAKI Motohiro + + * io.c (pipe_open): Remove fflush(stdin). it's no effect. + Pointed out by Ikegami Daisuke . + Thank you. + Fri Nov 11 07:33:30 2011 Eric Hodel * lib/net/http.rb (Net::HTTP::SSL_ATTRIBUTES): Use symbol keys instead diff --git a/io.c b/io.c index bc661ce6d2..e97704db11 100644 --- a/io.c +++ b/io.c @@ -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(); -- cgit v1.2.3