mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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/trunk@45130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b077f13433
commit
64904f51d7
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 22 19:07:31 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 18:40:58 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* .gitignore: ignore benchmark files
|
||||
|
|
|
@ -710,7 +710,7 @@ console_dev(VALUE klass)
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue