From 2ee9353fba7be5443db2ccdc3541586932ccf1f1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 8 Dec 2018 17:33:51 +0000 Subject: remove IO#close_on_exec= calls Since we've required Ruby 2.0+ for a while, we can assume descriptors are created with IO#close_on_exec=true and avoid bloating our code with calls to it. --- test/test_wbuf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_wbuf.rb') diff --git a/test/test_wbuf.rb b/test/test_wbuf.rb index 89825db..0135958 100644 --- a/test/test_wbuf.rb +++ b/test/test_wbuf.rb @@ -19,7 +19,7 @@ class TestWbuf < Testcase end def socketpair - KgioUS.pair.each { |io| io.close_on_exec = true } + KgioUS.pair end def test_wbuf -- cgit v1.2.3-24-ge0c7