diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-26 11:25:40 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-26 11:25:40 +0000 |
commit | 4ce308d6a4076c783ac91c861da6173ce3ae9e4f (patch) | |
tree | 94d9ab0da11e8a9fcae775e96a5eff19074815ff /lib | |
parent | 87e4ad0a236217fb27c3a0a22a1c3b4937f29771 (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')
-rw-r--r-- | lib/open3.rb | 3 |
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 |