Merge pull request #12860 from liupan1111/wip-fix-dpdk-prefix

async: fixed the error "Cause: Cannot create lock on '/var/run/.rte_c…

Reviewed-by: Haomai Wang <haomai@xsky.com>
This commit is contained in:
Haomai Wang 2017-01-11 10:17:07 +08:00 committed by GitHub
commit 2945bf1b50

View File

@ -91,6 +91,12 @@ namespace dpdk {
args.push_back(string2vector("--no-huge"));
}
std::string rte_file_prefix;
rte_file_prefix = "rte_";
rte_file_prefix += c->_conf->name.to_str();
args.push_back(string2vector("--file-prefix"));
args.push_back(string2vector(rte_file_prefix));
std::vector<char*> cargs;
for (auto&& a: args) {