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 9F8D37D05 for ; Fri, 25 Aug 2017 11:39:38 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Aug 2017 02:39:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,424,1498546800"; d="scan'208";a="144456079" Received: from dpdk06.sh.intel.com ([10.67.111.82]) by fmsmga006.fm.intel.com with ESMTP; 25 Aug 2017 02:39:36 -0700 From: Jianfeng Tan To: dev@dpdk.org Cc: bruce.richardson@intel.com, konstantin.ananyev@intel.com, pablo.de.lara.guarch@intel.com, thomas@monjalon.net, yliu@fridaylinux.org, maxime.coquelin@redhat.com, mtetsuyah@gmail.com, ferruh.yigit@intel.com, Jianfeng Tan Date: Fri, 25 Aug 2017 09:40:52 +0000 Message-Id: <1503654052-84730-13-git-send-email-jianfeng.tan@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503654052-84730-1-git-send-email-jianfeng.tan@intel.com> References: <1503654052-84730-1-git-send-email-jianfeng.tan@intel.com> Subject: [dpdk-dev] [PATCH 12/12] examples/helloworld: do not exit automatically 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: Fri, 25 Aug 2017 09:39:39 -0000 Signed-off-by: Jianfeng Tan --- examples/helloworld/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/helloworld/main.c b/examples/helloworld/main.c index 8b7a2de..35b70da 100644 --- a/examples/helloworld/main.c +++ b/examples/helloworld/main.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include @@ -72,6 +73,8 @@ main(int argc, char **argv) /* call it on master lcore too */ lcore_hello(NULL); + while (1) sleep(5); + rte_eal_mp_wait_lcore(); return 0; } -- 2.7.4