app/proc_info: check for primary process
Add a check to see if the primary process is running and exit gracefully if it is not. Suggested-by: Patrick Kutch <patrick.g.kutch@intel.com> Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
This commit is contained in:
parent
b2fbb98789
commit
af2c6fffe6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user