dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] sigevent/efd: minor simplifications


From: Eric Wong
Subject: [PATCH] sigevent/efd: minor simplifications
Date: Mon, 29 Dec 2014 04:26:06 +0000

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 <address@hidden> 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
-- 
EW




reply via email to

[Prev in Thread] Current Thread [Next in Thread]