From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5814DA04DD; Sat, 4 Jan 2020 02:35:12 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 648281D559; Sat, 4 Jan 2020 02:34:09 +0100 (CET) Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by dpdk.org (Postfix) with ESMTP id 34E091D501 for ; Sat, 4 Jan 2020 02:34:02 +0100 (CET) Received: by mail-pf1-f194.google.com with SMTP id w62so24241631pfw.8 for ; Fri, 03 Jan 2020 17:34:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MHI7cMSENo7lqn4JRd+oFBhYEul5nwsPPh9M0DElZJQ=; b=GuZpvgS1XtKyFb7sBpuC5sA4TwOyE155UaGra+gYsDHoLsyWx5V7ESm7F6DwbcJvaD Z2+Zewhxx8u4g9keiwD/EUBLcHBqxptJJaH+FWZc5fGVvZNqxaIXn+GgcArvZHoBudr0 dO4TckhhQs61SV4Y7xKbm1c7R9lz7TX6EE51/TCrHjVSB9OOvblhQshQgsM3Bc/I66SX YIxSyPe8OqgbbyfSf/RqWmw4Q7DbO2T/92PUXlYCWgpIs8b9fdqFuGjLQFRENnS/A9yU VO0mm/5ZXdwPSW6DuGO4FOoOvsYbJ0i5Z+6JeiQpysKXK5wvQLwP3/96QEg+xYZy4Cek B6BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MHI7cMSENo7lqn4JRd+oFBhYEul5nwsPPh9M0DElZJQ=; b=R5vI7mKkLdQSSJIbMuWBtBWvRNc5ly6VWNTz0Sy1puygN+kbJx8tqADUyK5b3uRqen NHT1GEqABKB4kiM7+ZUuABtLXdfLbDTltP8zzVyb2h10Uj0MaI/sScl9ZhzpDy+QsFLq LBYfs6tUfw4IDkGD3osRPvndBtqHD21pLT79k5cC+PW30BCAQ5DZiDAp8SBw+4p1o3tS GH4DARN/vtCiD+AtznlzKG6JDqSXa/ogYaBjqkmH7gv86Qc6a3lVZFWo2F90SqxNhmm6 6DQqTcvavLKAhCFo3mN7GsUefWeeUNc3EfpH6Wyzo6qZtHUCLceyPT4++Q5Tg7t5S+nN pZuw== X-Gm-Message-State: APjAAAV6NAqEDWPZxZQXjuaCyo9wfrvLaiZhi/cP7wTkJbIWzC/UzzxI BGAjkp7S/9ppiMPRFHUSAyaEVfsZdRw= X-Google-Smtp-Source: APXvYqzCM6POP9CkV21C0CYvQe7TSaqfHVl63b/g1xhPYkwtuxlS9u3P8MhStb0Kw3KO+/wfvrKYqQ== X-Received: by 2002:a63:b642:: with SMTP id v2mr97510905pgt.126.1578101640844; Fri, 03 Jan 2020 17:34:00 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j6sm16212934pjv.10.2020.01.03.17.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2020 17:34:00 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 3 Jan 2020 17:33:36 -0800 Message-Id: <20200104013341.19809-10-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200104013341.19809-1-stephen@networkplumber.org> References: <20200104013341.19809-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 09/14] eal: close mem config on cleanup X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Resolves file descriptor left open after rte_eal_cleanup. Signed-off-by: Stephen Hemminger --- lib/librte_eal/linux/eal/eal.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/linux/eal/eal.c b/lib/librte_eal/linux/eal/eal.c index 9ad81378f23c..e5c2a24322e9 100644 --- a/lib/librte_eal/linux/eal/eal.c +++ b/lib/librte_eal/linux/eal/eal.c @@ -1346,6 +1346,12 @@ rte_eal_cleanup(void) rte_mp_channel_cleanup(); eal_cleanup_config(&internal_config); rte_eal_log_cleanup(); + + if (mem_cfg_fd != -1) { + close(mem_cfg_fd); + mem_cfg_fd = -1; + } + return 0; } -- 2.20.1