[dpdk-dev] [PATCH 12/12] examples/helloworld: do not exit automatically

Jianfeng Tan jianfeng.tan at intel.com
Fri Aug 25 11:40:52 CEST 2017


Signed-off-by: Jianfeng Tan <jianfeng.tan at intel.com>
---
 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 <stdint.h>
 #include <errno.h>
 #include <sys/queue.h>
+#include <unistd.h>
 
 #include <rte_memory.h>
 #include <rte_memzone.h>
@@ -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



More information about the dev mailing list