From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 48A76F94 for ; Thu, 27 Apr 2017 03:32:11 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Apr 2017 18:32:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,256,1488873600"; d="scan'208";a="1123899279" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.239.128.234]) by orsmga001.jf.intel.com with ESMTP; 26 Apr 2017 18:32:09 -0700 From: Jiayu Hu To: dev@dpdk.org Cc: jianfeng.tan@intel.com, Jiayu Hu Date: Thu, 27 Apr 2017 09:32:50 +0800 Message-Id: <1493256770-15331-1-git-send-email-jiayu.hu@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] app/testpmd: terminate without freeing resources 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: , X-List-Received-Date: Thu, 27 Apr 2017 01:32:12 -0000 When testpmd exists, it frees the acquired resources (e.g. stop ports). However, when we terminate it by Ctrl-d, testpmd exists directly without releasing the resources. In this patch, we fix this exit issue. Signed-off-by: Jiayu Hu --- app/test-pmd/testpmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 3a57348..94cefc0 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -2289,6 +2289,7 @@ main(int argc, char** argv) start_packet_forwarding(0); } prompt(); + pmd_test_exit(); } else #endif { -- 2.7.4