examples: add eal cleanup to examples
[dpdk.git] / examples / qos_sched / main.c
index 73864d6..dc6a17a 100644 (file)
@@ -204,7 +204,7 @@ main(int argc, char **argv)
                return -1;
 
        /* launch per-lcore init on every lcore */
-       rte_eal_mp_remote_launch(app_main_loop, NULL, SKIP_MASTER);
+       rte_eal_mp_remote_launch(app_main_loop, NULL, SKIP_MAIN);
 
        if (interactive) {
                sleep(1);
@@ -218,5 +218,8 @@ main(int argc, char **argv)
                }
        }
 
+       /* clean up the EAL */
+       rte_eal_cleanup();
+
        return 0;
 }