From 025a67afc97ce65d30bebd61bedf20066d1874c6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 25 Oct 2013 23:01:01 +0000 Subject: enforce FD_CLOEXEC on all pipes, including tests We need to prevent FD leakage on Ruby 1.9.3 --- test/test_bin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_bin.rb') diff --git a/test/test_bin.rb b/test/test_bin.rb index 71333e7..8944eb3 100644 --- a/test/test_bin.rb +++ b/test/test_bin.rb @@ -40,7 +40,7 @@ class TestBin < Testcase cfg.puts " listen ENV['YAHNS_TEST_LISTEN']" cfg.puts "end" @cmd.concat(%W(-D -c #{cfg.path})) - addr = IO.pipe + addr = cloexec_pipe pid = fork do opts = { close_others: true } addr[0].close -- cgit v1.2.3-24-ge0c7