summaryrefslogtreecommitdiff
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
commit4ce308d6a4076c783ac91c861da6173ce3ae9e4f (patch)
tree94d9ab0da11e8a9fcae775e96a5eff19074815ff /lib/open3.rb
parent87e4ad0a236217fb27c3a0a22a1c3b4937f29771 (diff)
describe :pid thread variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 3824c81378..5efcb173cc 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