1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed FD leaks

This commit is contained in:
Nobuyoshi Nakada 2021-03-08 10:08:18 +09:00
parent 8aa70b9be2
commit d0a05fd4b4
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -129,7 +129,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase
Thread.new { server.accept.close }
end
client_threads = Array.new(client_threads_count) do
Thread.new { TCPSocket.open(server.addr[3], server.addr[1]) }
Thread.new { TCPSocket.open(server.addr[3], server.addr[1]) {} }
end
client_threads.each(&:join)
accept_threads.each(&:join)