From 4ce308d6a4076c783ac91c861da6173ce3ae9e4f Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 26 Apr 2008 11:25:40 +0000 Subject: describe :pid thread variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/open3.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3