revert previous doc. change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5d379991de
commit
c8892037c7
@ -462,10 +462,10 @@ pty_close_pty(VALUE assoc)
|
|||||||
* # assuming that factor uses stdio for stdout buffering.
|
* # assuming that factor uses stdio for stdout buffering.
|
||||||
* # If IO.pipe is used instead of PTY.open,
|
* # If IO.pipe is used instead of PTY.open,
|
||||||
* # this code deadlocks because factor's stdout is fully buffered.
|
* # this code deadlocks because factor's stdout is fully buffered.
|
||||||
* require "io/console"
|
|
||||||
* m, s = PTY.open
|
* m, s = PTY.open
|
||||||
|
* system("stty raw", :in=>s) # disable newline conversion.
|
||||||
* r, w = IO.pipe
|
* r, w = IO.pipe
|
||||||
* pid = s.raw { spawn("factor", :in=>r, :out=>s) }
|
* pid = spawn("factor", :in=>r, :out=>s)
|
||||||
* r.close
|
* r.close
|
||||||
* s.close
|
* s.close
|
||||||
* w.puts "42"
|
* w.puts "42"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user