summaryrefslogtreecommitdiffstats
path: root/app/proc_info/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/proc_info/main.c')
-rw-r--r--app/proc_info/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/proc_info/main.c b/app/proc_info/main.c
index 595f79f6..2c56d106 100644
--- a/app/proc_info/main.c
+++ b/app/proc_info/main.c
@@ -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)