summaryrefslogtreecommitdiffstats
path: root/lib/open3.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-26 11:25:40 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-26 11:25:40 +0000
commit34fd75a81f9a19ea6faf01769d1c39a6bc12d473 (patch)
tree94d9ab0da11e8a9fcae775e96a5eff19074815ff /lib/open3.rb
parent5cc93174119d2d37d2fa188fb33a329fe4552267 (diff)
downloadruby-34fd75a81f9a19ea6faf01769d1c39a6bc12d473.tar.gz
ruby-34fd75a81f9a19ea6faf01769d1c39a6bc12d473.tar.xz
ruby-34fd75a81f9a19ea6faf01769d1c39a6bc12d473.zip
describe :pid thread variable.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/open3.rb')
-rw-r--r--lib/open3.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/open3.rb b/lib/open3.rb
index 3824c8137..5efcb173c 100644
--- a/lib/open3.rb
+++ b/lib/open3.rb
@@ -64,10 +64,13 @@ module Open3
#
# Open stdin, stdout, and stderr streams and start external executable.
# In addition, a thread for waiting the started process is noticed.
+ # The thread has a thread variable :pid which is the pid of the started
+ # process.
#
# Non-block form:
#
# stdin, stdout, stderr, wait_thr = Open3.popen3w(cmd)
+ # pid = wait_thr[:pid] # pid of the started process.
# ...
# stdin.close # stdin, stdout and stderr should be closed in this form.
# stdout.close