summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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