From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Apr 2017 05:37:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,383,1488873600"; d="scan'208";a="92839325" Received: from rhorton-mobl1.ger.corp.intel.com (HELO FC23.ir.intel.com) ([163.33.230.216]) by orsmga005.jf.intel.com with ESMTP; 27 Apr 2017 05:37:07 -0700 From: Remy Horton To: dev@dpdk.org Cc: John McNamara Date: Thu, 27 Apr 2017 13:37:04 +0100 Message-Id: <1493296626-28128-1-git-send-email-remy.horton@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dpdk-dev] [PATCH v1 0/2] l2fwd-keepalive: Termination 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: , X-List-Received-Date: Thu, 27 Apr 2017 12:37:11 -0000 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