diff options
author | Eric Wong <e@80x24.org> | 2013-10-19 23:51:26 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-20 00:09:04 +0000 |
commit | 347130d795ccc85944964a36d5b5c1d60635eb81 (patch) | |
tree | cf934ae3c345038abffca274e6fa83ce8bcfc746 | |
parent | 4302f1abe77327ae5f645d046bcf5f8ade1715c6 (diff) | |
download | yahns-347130d795ccc85944964a36d5b5c1d60635eb81.tar.gz |
-rw-r--r-- | test/test_bin.rb | 1 |
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}" |