From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id D4A9DB3C2 for ; Tue, 26 Aug 2014 16:07:50 +0200 (CEST) Received: by mail-wg0-f45.google.com with SMTP id x12so14377356wgg.4 for ; Tue, 26 Aug 2014 07:11:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=d0ntlRx8b8ps7M4bziW/VoYgU5EzeFKyVorhUiUNGf0=; b=ANtGsjPdluHujNyb8t+zmwTRhF8wt4aHL9h0OwzsAMwcJEaKB9pEYAWY5JxJYTpXd7 2OxF/ILLv9lpWR5J9zG1oppSv9fTe//pjXYcVWeP6JOVPEZG+B48Afs+nT2uQ1GadCwp fRio4svv9y7lXdxvAcUWO8e28Qp2PUbTUzlBA5LN1vO1sxQtNwJmyeX3rekDbAddiKn2 9IVuRR9l8fJP+A4vijt4twpSpfyUDoTORjTsWWLBFf7cJ83r+xZgfh5Bs48oYWXNzqzv 3XdB+/F1N7e7AojRtO9xeRUV7euMJKNx2vbnF/O50HtZRk6cbIbxJed4bIibwi1mA5W3 jkyA== X-Gm-Message-State: ALoCoQljZjkR7apZ0V4OpJ0T2hmITUuOJDiRJzbBEnQmb1/sCUji4Gj2ARlHVmnPqiESNW6zvU9s X-Received: by 10.180.212.78 with SMTP id ni14mr22504123wic.44.1409062310790; Tue, 26 Aug 2014 07:11:50 -0700 (PDT) Received: from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id ju1sm8693095wjc.1.2014.08.26.07.11.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Aug 2014 07:11:50 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Tue, 26 Aug 2014 16:11:38 +0200 Message-Id: <1409062300-17004-2-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1409062300-17004-1-git-send-email-david.marchand@6wind.com> References: <1409062300-17004-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH RFC 1/3] eal/bsd: fix fd leak X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2014 14:07:51 -0000 Signed-off-by: David Marchand --- lib/librte_eal/bsdapp/eal/eal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index a296da5..0697b05 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -810,6 +810,7 @@ rte_eal_iopl_init(void) fd = open("/dev/io", O_RDWR); if (fd < 0) return -1; + close(fd); return 0; } -- 1.7.10.4