ruby-changes:4714
From: ko1@a...
Date: Sat, 26 Apr 2008 20:25:48 +0900 (JST)
Subject: [ruby-changes:4714] akr - Ruby:r16208 (trunk): describe :pid thread variable.
akr 2008-04-26 20:25:40 +0900 (Sat, 26 Apr 2008)
New Revision: 16208
Modified files:
trunk/lib/open3.rb
Log:
describe :pid thread variable.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/open3.rb?r1=16208&r2=16207&diff_format=u
Index: lib/open3.rb
===================================================================
--- lib/open3.rb (revision 16207)
+++ lib/open3.rb (revision 16208)
@@ -64,10 +64,13 @@
#
# 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
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/