mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
describe :pid thread variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
87e4ad0a23
commit
4ce308d6a4
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue