Commit ca97655f authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline
Browse files

CPUAffinity: do not stop if writing to netdev_set_queue_rps_cpus.c fails

parent 21cab455
......@@ -331,6 +331,7 @@ string CPUAffinity::getNetDevSetterSudoDesc()
string dir = "/tmp";
string fname = dir + "/" + setter_name + ".c";
ofstream src_file(fname.c_str());
if (src_file) {
const StringList& SrcList = NetDevSetQueueRpsSrc;
StringList::const_iterator it, end = SrcList.end();
for (it = SrcList.begin(); src_file && (it != end); ++it)
......@@ -338,7 +339,10 @@ string CPUAffinity::getNetDevSetterSudoDesc()
if (src_file)
src_file.close();
if (!src_file)
THROW_HW_ERROR(Error) << "Error writing to " << fname;
DEB_WARNING() << "Error writing to " << fname;
} else {
DEB_WARNING() << "Error creating " << fname;
}
ostringstream desc;
string aux_setter = dir + "/" + setter_name;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment