From mboxrd@z Thu Jan 1 00:00:00 1970 From: Remy Horton Subject: [PATCH v1 0/2] l2fwd-keepalive: Termination cleanup Date: Thu, 27 Apr 2017 13:37:04 +0100 Message-ID: <1493296626-28128-1-git-send-email-remy.horton@intel.com> Cc: John McNamara To: dev@dpdk.org Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 99B671077 for ; Thu, 27 Apr 2017 14:37:09 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The l2fwd-keepalive example has infinite processing loops and as a result the only way to exit it is via SIGINT/SIGTERM (e.g. Control-C). The resulting shutdown is unclean, in particular leaving stale shared host memory handles. This is fixed by adding a signal handler that causes the processing loops to break, and adding cleanup code to remove the stale handles. Remy Horton (2): examples/l2fwd-keepalive: add graceful exit examples/l2fwd-keepalive: add SHM cleanup on exit doc/guides/rel_notes/release_17_05.rst | 4 ++++ examples/l2fwd-keepalive/main.c | 31 +++++++++++++++++++++++++++---- examples/l2fwd-keepalive/shm.c | 10 ++++++++++ examples/l2fwd-keepalive/shm.h | 9 +++++++++ 4 files changed, 50 insertions(+), 4 deletions(-) -- 2.5.5