summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-08 08:08:29 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-08 08:08:29 +0000
commitf491696f4b1320f7e26801ec189f4f874400bc52 (patch)
treeed1a436c652e519afb8ada08816fa111c8abfebe
parent1dee5e34a3d397eb96db0b6bcc8e9cb9858975d0 (diff)
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/pty/pty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index 9650f533f2..ff506a107b 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -462,10 +462,10 @@ 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"
* m, s = PTY.open
- * system("stty raw", :in=>s) # disable newline conversion.
* r, w = IO.pipe
- * pid = spawn("factor", :in=>r, :out=>s)
+ * pid = s.raw { spawn("factor", :in=>r, :out=>s) }
* r.close
* s.close
* w.puts "42"