1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/io/console/console.c (ttymode): save dupped file descriptors

and restore tty modes using them, so that original modes can be
  restored even if orignal fds are closed.  [ruby-dev:41225]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-05-08 14:07:32 +00:00
parent f491696f4b
commit 6f3830427d
3 changed files with 37 additions and 3 deletions

View file

@ -14,6 +14,7 @@ else
end
have_header("sys/ioctl.h")
have_func("rb_io_get_write_io", "ruby/io.h")
have_func("dup3", "unistd.h")
if ok
create_makefile("io/console")
end