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

ruby-changes:33052

From: usa <ko1@a...>
Date: Sat, 22 Feb 2014 19:16:18 +0900 (JST)
Subject: [ruby-changes:33052] usa:r45131 (ruby_1_9_3): merge revision(s) 45130: [Backport #9554]

usa	2014-02-22 19:16:08 +0900 (Sat, 22 Feb 2014)

  New Revision: 45131

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

  Log:
    merge revision(s) 45130: [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_1_9_3/
  Modified files:
    branches/ruby_1_9_3/ChangeLog
    branches/ruby_1_9_3/ext/io/console/console.c
    branches/ruby_1_9_3/version.h
Index: ruby_1_9_3/ChangeLog
===================================================================
--- ruby_1_9_3/ChangeLog	(revision 45130)
+++ ruby_1_9_3/ChangeLog	(revision 45131)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/ChangeLog#L1
+Sat Feb 22 19:14:25 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 10:09:42 2014  Eric Wong  <e@8...>
 
 	* ext/socket/ancdata.c (bsock_sendmsg_internal): only retry on error
Index: ruby_1_9_3/ext/io/console/console.c
===================================================================
--- ruby_1_9_3/ext/io/console/console.c	(revision 45130)
+++ ruby_1_9_3/ext/io/console/console.c	(revision 45131)
@@ -684,7 +684,7 @@ console_dev(VALUE klass) https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/ext/io/console/console.c#L684
 	int fd;
 
 #ifdef CONSOLE_DEVICE_FOR_WRITING
-	fd = open(CONSOLE_DEVICE_FOR_WRITING, O_WRONLY);
+	fd = open(CONSOLE_DEVICE_FOR_WRITING, O_RDWR);
 	if (fd < 0) return Qnil;
         rb_update_max_fd(fd);
 	args[1] = INT2FIX(O_WRONLY);
Index: ruby_1_9_3/version.h
===================================================================
--- ruby_1_9_3/version.h	(revision 45130)
+++ ruby_1_9_3/version.h	(revision 45131)
@@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/version.h#L1
 #define RUBY_VERSION "1.9.3"
-#define RUBY_PATCHLEVEL 541
+#define RUBY_PATCHLEVEL 542
 
 #define RUBY_RELEASE_DATE "2014-02-22"
 #define RUBY_RELEASE_YEAR 2014

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


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

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