We can use symbols in the SleepyPenguin APIs to trade speed for
space in uncommon code paths.
---
 lib/yahns/queue_epoll.rb  | 2 +-
 lib/yahns/sigevent_efd.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/yahns/queue_epoll.rb b/lib/yahns/queue_epoll.rb
index 2875920..1511917 100644
--- a/lib/yahns/queue_epoll.rb
+++ b/lib/yahns/queue_epoll.rb
@@ -15,7 +15,7 @@ class Yahns::Queue < SleepyPenguin::Epoll::IO # :nodoc:
   QEV_WR = Epoll::OUT | Epoll::ONESHOT
 
   def self.new
-    super(SleepyPenguin::Epoll::CLOEXEC)
+    super(Epoll::CLOEXEC)
   end
 
   # for HTTP and HTTPS servers, we rely on the io writing to us, first
diff --git a/lib/yahns/sigevent_efd.rb b/lib/yahns/sigevent_efd.rb
index c65e13f..2c04b36 100644
--- a/lib/yahns/sigevent_efd.rb
+++ b/lib/yahns/sigevent_efd.rb
@@ -4,7 +4,7 @@
 class Yahns::Sigevent < SleepyPenguin::EventFD # :nodoc:
   include Kgio::DefaultWaiters
   def self.new
-    super(0, SleepyPenguin::EventFD::CLOEXEC)
+    super(0, :CLOEXEC)
   end
 
   def sev_signal
-- 
EW


Reply via email to