ruby-changes:15746
From: akr <ko1@a...>
Date: Sat, 8 May 2010 17:11:57 +0900 (JST)
Subject: [ruby-changes:15746] Ruby:r27674 (trunk): update doc.
akr 2010-05-08 17:08:29 +0900 (Sat, 08 May 2010) New Revision: 27674 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27674 Log: update doc. Modified files: trunk/ext/pty/pty.c Index: ext/pty/pty.c =================================================================== --- ext/pty/pty.c (revision 27673) +++ ext/pty/pty.c (revision 27674) @@ -462,10 +462,10 @@ * # 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" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/