Signed-off-by: Jianfeng Tan <[email protected]>
---
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