From 23b87be611b0f927fc361db22f018ce9dd3aeb29 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 28 Dec 2014 11:06:23 +0000 Subject: sigevent/efd: minor simplifications This reduces memory overhead by a few bytes by eliminating constant lookups and unnecessary inclusions. --- lib/dtas/sigevent/efd.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/dtas/sigevent/efd.rb b/lib/dtas/sigevent/efd.rb index 5d8d800..373d655 100644 --- a/lib/dtas/sigevent/efd.rb +++ b/lib/dtas/sigevent/efd.rb @@ -1,10 +1,8 @@ # Copyright (C) 2013-2014, Eric Wong and all contributors # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) class DTAS::Sigevent < SleepyPenguin::EventFD # :nodoc: - include SleepyPenguin - def self.new - super(0, EventFD::CLOEXEC) + super(0, :CLOEXEC) end def signal -- cgit v1.2.3-24-ge0c7