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. --- lib/yahns/sigevent_pipe.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/yahns/sigevent_pipe.rb') diff --git a/lib/yahns/sigevent_pipe.rb b/lib/yahns/sigevent_pipe.rb index a85fb2a..f630e72 100644 --- a/lib/yahns/sigevent_pipe.rb +++ b/lib/yahns/sigevent_pipe.rb @@ -6,7 +6,6 @@ class Yahns::Sigevent # :nodoc: attr_reader :to_io def initialize @to_io, @wr = Kgio::Pipe.new - @to_io.close_on_exec = @wr.close_on_exec = true end def kgio_wait_readable(*args) -- cgit v1.2.3-24-ge0c7