ruby-changes:33051
From: usa <ko1@a...>
Date: Sat, 22 Feb 2014 19:11:32 +0900 (JST)
Subject: [ruby-changes:33051] usa:r45130 (trunk): * ext/io/console/console.c (console_dev): need read access for conout$
usa 2014-02-22 19:11:25 +0900 (Sat, 22 Feb 2014) New Revision: 45130 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45130 Log: * ext/io/console/console.c (console_dev): need read access for conout$ because some functions need it. [Bug#9554] Modified files: trunk/ChangeLog trunk/ext/io/console/console.c Index: ChangeLog =================================================================== --- ChangeLog (revision 45129) +++ ChangeLog (revision 45130) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Feb 22 19:07:31 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 18:40:58 2014 Eric Wong <e@8...> * .gitignore: ignore benchmark files Index: ext/io/console/console.c =================================================================== --- ext/io/console/console.c (revision 45129) +++ ext/io/console/console.c (revision 45130) @@ -710,7 +710,7 @@ console_dev(VALUE klass) https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L710 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/