[前][次][番号順一覧][スレッド一覧]

ruby-changes:2755

From: ko1@a...
Date: 16 Dec 2007 00:02:56 +0900
Subject: [ruby-changes:2755] akr - Ruby:r14246 (trunk): * test/openssl/test_pair.rb (SSLPair#ssl_pair): join the thread, even

akr	2007-12-16 00:00:52 +0900 (Sun, 16 Dec 2007)

  New Revision: 14246

  Modified files:
    trunk/ChangeLog
    trunk/test/openssl/test_pair.rb

  Log:
    * test/openssl/test_pair.rb (SSLPair#ssl_pair): join the thread, even
      on an error.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14246&r2=14245
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/openssl/test_pair.rb?r1=14246&r2=14245

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14245)
+++ ChangeLog	(revision 14246)
@@ -1,3 +1,8 @@
+Sat Dec 15 23:58:46 2007  Tanaka Akira  <akr@f...>
+
+	* test/openssl/test_pair.rb (SSLPair#ssl_pair): join the thread, even
+	  on an error.
+
 Sat Dec 15 23:50:31 2007  Tanaka Akira  <akr@f...>
 
 	* test/xmlrpc/webrick_testing.rb: join webrick server thread.
Index: test/openssl/test_pair.rb
===================================================================
--- test/openssl/test_pair.rb	(revision 14245)
+++ test/openssl/test_pair.rb	(revision 14246)
@@ -54,6 +54,11 @@
     else
       return c, s
     end
+  ensure
+    if th && th.alive?
+      th.kill
+      th.join 
+    end
   end
 end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]