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

ruby-changes:65415

From: Nobuyoshi <ko1@a...>
Date: Mon, 8 Mar 2021 10:09:34 +0900 (JST)
Subject: [ruby-changes:65415] d0a05fd4b4 (master): Fixed FD leaks

https://git.ruby-lang.org/ruby.git/commit/?id=d0a05fd4b4

From d0a05fd4b40ff0f88728c4897e67b68185128f54 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 8 Mar 2021 10:08:18 +0900
Subject: Fixed FD leaks

---
 test/socket/test_tcp.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/socket/test_tcp.rb b/test/socket/test_tcp.rb
index b897ff5..9aa716f 100644
--- a/test/socket/test_tcp.rb
+++ b/test/socket/test_tcp.rb
@@ -129,7 +129,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/socket/test_tcp.rb#L129
               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)
-- 
cgit v1.1


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

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