eal: fix config file path when checking process
authorJianfeng Tan <jianfeng.tan@intel.com>
Mon, 26 Jun 2017 06:49:46 +0000 (06:49 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 5 Jul 2017 13:17:05 +0000 (15:17 +0200)
commit641566b38be46069c796c6e1ce2a89f3df2c2591
treefcf6ac564bcf7b01b72f613f7723cca1f4f44844
parenta33c81e38cebfe3fdbefb218c921f11ea1e7c8ad
eal: fix config file path when checking process

When primary process is booted with --file-prefix option, the API,
rte_eal_primary_proc_alive(), uses a wrong config file path to
check if primary process is alive.

Fix it by calling helper function to get config file path.

Fixes: dd3e00138d74 ("eal: check if primary process is alive")
Cc: stable@dpdk.org
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
lib/librte_eal/common/eal_common_proc.c