summaryrefslogtreecommitdiffstats
path: root/test/openssl/test_ssl.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-16 05:56:44 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-16 05:56:44 +0000
commitca2da984f7670e23079f0f0c160cf385b102643f (patch)
treeaa541e1b5efc9ef51832cc70ddec22a335cc18d7 /test/openssl/test_ssl.rb
parentd39b3c70fa984bf37cb325215a7e88c71afc2ef2 (diff)
downloadruby-ca2da984f7670e23079f0f0c160cf385b102643f.tar.gz
ruby-ca2da984f7670e23079f0f0c160cf385b102643f.tar.xz
ruby-ca2da984f7670e23079f0f0c160cf385b102643f.zip
* test/openssl/ssl_server.rb, test/openssl/test_ssl.rb: workaround to
terminate child process. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl/test_ssl.rb')
-rw-r--r--test/openssl/test_ssl.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index 3ca25cbfe..637750af7 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -70,9 +70,8 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
block.call(server)
ensure
if server
- server.close_write
- Process.kill(:TERM, pid) rescue nil
- Process.waitpid(pid)
+ Process.kill(:KILL, pid)
+ server.close
end
end
end