зеркало из https://github.com/github/ruby.git
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
64dee0063b
Коммит
cb61fcb988
|
@ -462,8 +462,9 @@ pty_close_pty(VALUE assoc)
|
|||
* # assuming that factor uses stdio for stdout buffering.
|
||||
* # If IO.pipe is used instead of PTY.open,
|
||||
* # this code deadlocks because factor's stdout is fully buffered.
|
||||
* require 'io/console' # for IO#raw!
|
||||
* m, s = PTY.open
|
||||
* system("stty raw", :in=>s) # disable newline conversion.
|
||||
* s.raw! # disable newline conversion.
|
||||
* r, w = IO.pipe
|
||||
* pid = spawn("factor", :in=>r, :out=>s)
|
||||
* r.close
|
||||
|
|
Загрузка…
Ссылка в новой задаче