Imported Upstream version 16.11
[deb_dpdk.git] / app / proc_info / main.c
index 595f79f..2c56d10 100644 (file)
@@ -329,6 +329,9 @@ main(int argc, char **argv)
        argc -= ret;
        argv += (ret - 3);
 
+       if (!rte_eal_primary_proc_alive(NULL))
+               rte_exit(EXIT_FAILURE, "No primary DPDK process is running.\n");
+
        /* parse app arguments */
        ret = proc_info_parse_args(argc, argv);
        if (ret < 0)