diff options
author | Eric Wong <e@80x24.org> | 2018-12-08 17:33:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-12-08 17:33:51 +0000 |
commit | 2ee9353fba7be5443db2ccdc3541586932ccf1f1 (patch) | |
tree | d3d39a754353c5078e468a219a289c2170d97614 /test/test_wbuf.rb | |
parent | dbadf731d06a79cdae7afd23f4c20fb8fbb9c07e (diff) | |
download | yahns-2ee9353fba7be5443db2ccdc3541586932ccf1f1.tar.gz |
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.
Diffstat (limited to 'test/test_wbuf.rb')
-rw-r--r-- | test/test_wbuf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |