about summary refs log tree commit homepage
path: root/lib/yahns/queue_kqueue.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-12-08 17:33:51 +0000
committerEric Wong <e@80x24.org>2018-12-08 17:33:51 +0000
commit2ee9353fba7be5443db2ccdc3541586932ccf1f1 (patch)
treed3d39a754353c5078e468a219a289c2170d97614 /lib/yahns/queue_kqueue.rb
parentdbadf731d06a79cdae7afd23f4c20fb8fbb9c07e (diff)
downloadyahns-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 'lib/yahns/queue_kqueue.rb')
-rw-r--r--lib/yahns/queue_kqueue.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/yahns/queue_kqueue.rb b/lib/yahns/queue_kqueue.rb
index 064cd0e..3c4c51c 100644
--- a/lib/yahns/queue_kqueue.rb
+++ b/lib/yahns/queue_kqueue.rb
@@ -17,12 +17,6 @@ class Yahns::Queue < SleepyPenguin::Kqueue::IO # :nodoc:
 
   ADD_ONESHOT = Ev::ADD | Ev::ONESHOT # private
 
-  def self.new
-    rv = super
-    rv.close_on_exec = true
-    rv
-  end
-
   # for HTTP and HTTPS servers, we rely on the io writing to us, first
   # flags: QEV_RD/QEV_WR (usually QEV_RD)
   def queue_add(io, flags)