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

ruby-changes:33058

From: nagachika <ko1@a...>
Date: Sat, 22 Feb 2014 22:13:08 +0900 (JST)
Subject: [ruby-changes:33058] nagachika:r45137 (ruby_2_0_0): merge revision(s) r45130: [Backport #9554]

nagachika	2014-02-22 22:13:03 +0900 (Sat, 22 Feb 2014)

  New Revision: 45137

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

  Log:
    merge revision(s) r45130: [Backport #9554]
    
    * ext/io/console/console.c (console_dev): need read access for conout$
      because some functions need it.  [Bug#9554]

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/ext/io/console/console.c
    branches/ruby_2_0_0/version.h
Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 45136)
+++ ruby_2_0_0/ChangeLog	(revision 45137)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Sat Feb 22 22:11:58 2014  NAKAMURA Usaku  <usa@r...>
+
+	* ext/io/console/console.c (console_dev): need read access for conout$
+	  because some functions need it.  [Bug#9554]
+
 Sat Feb 22 14:01:42 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* iseq.c (iseq_load): keep type_map to get rid of memory leak.
Index: ruby_2_0_0/ext/io/console/console.c
===================================================================
--- ruby_2_0_0/ext/io/console/console.c	(revision 45136)
+++ ruby_2_0_0/ext/io/console/console.c	(revision 45137)
@@ -686,7 +686,7 @@ console_dev(VALUE klass) https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/io/console/console.c#L686
 	int fd;
 
 #ifdef CONSOLE_DEVICE_FOR_WRITING
-	fd = rb_cloexec_open(CONSOLE_DEVICE_FOR_WRITING, O_WRONLY, 0);
+	fd = rb_cloexec_open(CONSOLE_DEVICE_FOR_WRITING, O_RDWR, 0);
 	if (fd < 0) return Qnil;
         rb_update_max_fd(fd);
 	args[1] = INT2FIX(O_WRONLY);
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 45136)
+++ ruby_2_0_0/version.h	(revision 45137)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
 #define RUBY_RELEASE_DATE "2014-02-22"
-#define RUBY_PATCHLEVEL 449
+#define RUBY_PATCHLEVEL 450
 
 #define RUBY_RELEASE_YEAR 2014
 #define RUBY_RELEASE_MONTH 2

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r45130


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

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