From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jianfeng Tan Subject: [PATCH 12/12] examples/helloworld: do not exit automatically Date: Fri, 25 Aug 2017 09:40:52 +0000 Message-ID: <1503654052-84730-13-git-send-email-jianfeng.tan@intel.com> References: <1503654052-84730-1-git-send-email-jianfeng.tan@intel.com> 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 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 9F8D37D05 for ; Fri, 25 Aug 2017 11:39:38 +0200 (CEST) In-Reply-To: <1503654052-84730-1-git-send-email-jianfeng.tan@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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