about summary refs log tree commit homepage
path: root/test/test_bin.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-10-25 23:01:01 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-25 23:02:01 +0000
commit025a67afc97ce65d30bebd61bedf20066d1874c6 (patch)
treeaf21ac8c5c724813eae56b188161c24955ca6638 /test/test_bin.rb
parent9bece9d13543743e2a0fdc6eab56c54098d4d0e6 (diff)
downloadyahns-025a67afc97ce65d30bebd61bedf20066d1874c6.tar.gz
We need to prevent FD leakage on Ruby 1.9.3
Diffstat (limited to 'test/test_bin.rb')
-rw-r--r--test/test_bin.rb2
1 files changed, 1 insertions, 1 deletions
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