about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--test/test_bin.rb1
1 files changed, 1 insertions, 0 deletions
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}"