examples: add eal cleanup to examples
[dpdk.git] / examples / pipeline / main.c
index 2303c9e..8ea19f9 100644 (file)
@@ -166,7 +166,7 @@ main(int argc, char **argv)
        rte_eal_mp_remote_launch(
                thread_main,
                NULL,
-               SKIP_MASTER);
+               SKIP_MAIN);
 
        /* Script */
        if (app.script_name)
@@ -190,4 +190,7 @@ main(int argc, char **argv)
 
                conn_poll_for_msg(conn);
        }
+
+       /* clean up the EAL */
+       rte_eal_cleanup();
 }