Skip to content
Snippets Groups Projects
Commit fdee1ced authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

startProcess: Make writing error messages from the child more robust

parent 5989966e
No related branches found
No related tags found
No related merge requests found
......@@ -854,8 +854,10 @@ pid_t startProcess(std::function<void()> fun, const string & errorPrefix)
restoreAffinity();
fun();
} catch (std::exception & e) {
writeToStderr(errorPrefix + string(e.what()) + "\n");
}
try {
std::cerr << errorPrefix << e.what() << "\n";
} catch (...) { }
} catch (...) { }
_exit(1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment