[前][次][番号順一覧][スレッド一覧]

ruby-changes:21655

From: kosaki <ko1@a...>
Date: Fri, 11 Nov 2011 12:41:25 +0900 (JST)
Subject: [ruby-changes:21655] kosaki:r33704 (trunk): * io.c (pipe_open): Remove fflush(stdin). it's no effect.

kosaki	2011-11-11 12:41:13 +0900 (Fri, 11 Nov 2011)

  New Revision: 33704

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33704

  Log:
    * io.c (pipe_open): Remove fflush(stdin). it's no effect.
      Pointed out by Ikegami Daisuke <ikegami.da@g...>.
      Thank you.

  Modified files:
    trunk/ChangeLog
    trunk/io.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33703)
+++ ChangeLog	(revision 33704)
@@ -1,3 +1,9 @@
+Fri Nov 11 12:36:37 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* io.c (pipe_open): Remove fflush(stdin). it's no effect.
+	  Pointed out by Ikegami Daisuke <ikegami.da@g...>.
+	  Thank you.
+
 Fri Nov 11 07:33:30 2011  Eric Hodel  <drbrain@s...>
 
 	* lib/net/http.rb (Net::HTTP::SSL_ATTRIBUTES):  Use symbol keys instead
Index: io.c
===================================================================
--- io.c	(revision 33703)
+++ io.c	(revision 33704)
@@ -5260,7 +5260,6 @@
 	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();

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]