From 347130d795ccc85944964a36d5b5c1d60635eb81 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 19 Oct 2013 23:51:26 +0000 Subject: test_bin: set close-on-exec for Ruby 1.9.3 compatibility --- test/test_bin.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_bin.rb b/test/test_bin.rb index 8acc91c..9bfa7af 100644 --- a/test/test_bin.rb +++ b/test/test_bin.rb @@ -47,6 +47,7 @@ class TestBin < Testcase ENV["YAHNS_FD"] = @srv.fileno.to_s else @srv = TCPServer.new(ENV["TEST_HOST"] || "127.0.0.1", 0) + @srv.close_on_exec = true # needed for 1.9.3 end host, port = @srv.addr[3], @srv.addr[1] listen = ENV["YAHNS_TEST_LISTEN"] = "#{host}:#{port}" -- cgit v1.2.3-24-ge0c7