diff options
author | Eric Wong <e@80x24.org> | 2014-12-28 11:06:23 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-12-28 16:07:51 +0000 |
commit | 23b87be611b0f927fc361db22f018ce9dd3aeb29 (patch) | |
tree | 1d6af85256191f28177afcc8364cb3b67c7b33fa /lib/dtas/sigevent/efd.rb | |
parent | bbe63ddd50947195f6ef45d46dd87af4ba4de526 (diff) | |
download | dtas-23b87be611b0f927fc361db22f018ce9dd3aeb29.tar.gz |
This reduces memory overhead by a few bytes by eliminating constant lookups and unnecessary inclusions.
Diffstat (limited to 'lib/dtas/sigevent/efd.rb')
-rw-r--r-- | lib/dtas/sigevent/efd.rb | 4 |
1 files changed, 1 insertions, 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 <e@80x24.org> 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 |