ruby-changes:4715
From: ko1@a...
Date: Sat, 26 Apr 2008 20:54:26 +0900 (JST)
Subject: [ruby-changes:4715] akr - Ruby:r16209 (trunk): describe about waiting a child process.
akr 2008-04-26 20:54:13 +0900 (Sat, 26 Apr 2008) New Revision: 16209 Modified files: trunk/lib/open3.rb Log: describe about waiting a child process. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/open3.rb?r1=16209&r2=16208&diff_format=u Index: lib/open3.rb =================================================================== --- lib/open3.rb (revision 16208) +++ lib/open3.rb (revision 16209) @@ -42,8 +42,6 @@ # # Block form: # - # require 'open3' - # # Open3.popen3(cmd) { |stdin, stdout, stderr| ... } # # stdin, stdout and stderr is closed automatically in this form. # @@ -83,6 +81,11 @@ # # The parameter +cmd+ is passed directly to Kernel#spawn. # + # wait_thr.value waits the termination of the process. + # The block form also waits the process when it returns. + # + # Closing stdin, stdout and stderr does not wait the process. + # def popen3w(*cmd) pw = IO::pipe # pipe[0] for read, pipe[1] for write pr = IO::pipe -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/