summaryrefslogtreecommitdiffstats
path: root/lib/open3.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-26 11:54:13 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-26 11:54:13 +0000
commitd97052c067fcf987a8f4d1cee1733fb0d7f2edab (patch)
tree28cd42f805e1d79650ef155eec6de3d58b86e73b /lib/open3.rb
parent34fd75a81f9a19ea6faf01769d1c39a6bc12d473 (diff)
downloadruby-d97052c067fcf987a8f4d1cee1733fb0d7f2edab.tar.gz
ruby-d97052c067fcf987a8f4d1cee1733fb0d7f2edab.tar.xz
ruby-d97052c067fcf987a8f4d1cee1733fb0d7f2edab.zip
describe about waiting a child process.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/open3.rb')
-rw-r--r--lib/open3.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/open3.rb b/lib/open3.rb
index 5efcb173c..ada2b4fbd 100644
--- a/lib/open3.rb
+++ b/lib/open3.rb
@@ -42,8 +42,6 @@ module Open3
#
# Block form:
#
- # require 'open3'
- #
# Open3.popen3(cmd) { |stdin, stdout, stderr| ... }
# # stdin, stdout and stderr is closed automatically in this form.
#
@@ -83,6 +81,11 @@ module Open3
#
# 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