diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-22 10:16:08 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-22 10:16:08 +0000 |
commit | b9c0eba5a1cd5e6259978e61f24c7c28f48ca2c1 (patch) | |
tree | ab351feca89a4f7393abc37b43109f8fc68012ec | |
parent | 94fbadd13534675932c036256d8fd7a061095525 (diff) |
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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@45131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/io/console/console.c | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Sat Feb 22 19:14:25 2014 NAKAMURA Usaku <usa@ruby-lang.org> + + * 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@80x24.org> * ext/socket/ancdata.c (bsock_sendmsg_internal): only retry on error diff --git a/ext/io/console/console.c b/ext/io/console/console.c index efad30c1ca..e0799a01c0 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -684,7 +684,7 @@ console_dev(VALUE klass) 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); @@ -1,5 +1,5 @@ #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 |