From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 377D35A87 for ; Thu, 24 Dec 2015 04:06:32 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP; 23 Dec 2015 19:06:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,471,1444719600"; d="scan'208";a="623041273" Received: from unknown (HELO dpdk5.sh.intel.com) ([10.239.129.244]) by FMSMGA003.fm.intel.com with ESMTP; 23 Dec 2015 19:06:28 -0800 From: Zhihong Wang To: dev@dpdk.org Date: Wed, 23 Dec 2015 15:03:12 -0500 Message-Id: <1450900995-84185-1-git-send-email-zhihong.wang@intel.com> X-Mailer: git-send-email 2.5.0 Subject: [dpdk-dev] [PATCH 0/3] Handle SIGINT and SIGTERM in DPDK examples 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: Thu, 24 Dec 2015 03:06:32 -0000 This patch handles SIGINT and SIGTERM in testpmd, l2fwd, and l3fwd, make sure all ports are properly stopped and closed. For virtual ports, the stop and close function may deal with resource cleanup, such as socket files unlinking. Zhihong Wang (3): app/test-pmd: Handle SIGINT and SIGTERM in testpmd examples/l2fwd: Handle SIGINT and SIGTERM in l2fwd examples/l3fwd: Handle SIGINT and SIGTERM in l3fwd app/test-pmd/testpmd.c | 23 +++++++++++++++++++++++ examples/l2fwd/main.c | 25 +++++++++++++++++++++++++ examples/l3fwd/main.c | 25 +++++++++++++++++++++++++ 3 files changed, 73 insertions(+) -- 2.5.0