Initialize shared memory only if it is used.

This commit is contained in:
Alexey Rybalchenko
2017-01-09 13:37:39 +01:00
committed by Mohammad Al-Turany
parent ac1da4db66
commit 8cf1cbb930
5 changed files with 43 additions and 35 deletions

View File

@@ -115,7 +115,7 @@ FairMQPollerZMQ::FairMQPollerZMQ(const unordered_map<string, vector<FairMQChanne
{
LOG(ERROR) << "At least one of the provided channel keys for poller initialization is invalid";
LOG(ERROR) << "Out of Range error: " << oor.what() << '\n';
exit(EXIT_FAILURE);
throw std::out_of_range("Invalid channel during poller initialization");
}
}