From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 208.118.235.0/24 X-Spam-Status: No, score=-2.4 required=3.0 tests=AWL,BAYES_00,URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: dtas-all@80x24.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5D2C4633822 for ; Mon, 29 Dec 2014 04:26:22 +0000 (UTC) Received: from localhost ([::1]:60143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5RuP-0002M2-Nt for dtas-all@80x24.org; Sun, 28 Dec 2014 23:26:21 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5RuI-0002KA-I0 for dtas-all@nongnu.org; Sun, 28 Dec 2014 23:26:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5RuE-0007eg-J4 for dtas-all@nongnu.org; Sun, 28 Dec 2014 23:26:14 -0500 Received: from dcvr.yhbt.net ([64.71.152.64]:60645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5RuE-0007ec-DX for dtas-all@nongnu.org; Sun, 28 Dec 2014 23:26:10 -0500 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 53A62633819 for ; Mon, 29 Dec 2014 04:26:09 +0000 (UTC) From: Eric Wong To: Subject: [PATCH] sigevent/efd: minor simplifications Date: Mon, 29 Dec 2014 04:26:06 +0000 Message-Id: <1419827169-20555-1-git-send-email-e@80x24.org> X-Mailer: git-send-email 2.2.1.202.g55b961f X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.71.152.64 X-BeenThere: dtas-all@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dtas-all-bounces+dtas-all=80x24.org@nongnu.org Sender: dtas-all-bounces+dtas-all=80x24.org@nongnu.org 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 -- EW