summaryrefslogtreecommitdiff
path: root/test/openssl/test_ssl.rb
diff options
context:
space:
mode:
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 3ca25cbfe1..637750af70 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