Fix for:
CID 717177 (#2-1 of 3): Uncaught exception (UNCAUGHT_EXCEPT)
root_function: In function main(int, char const **) an exception of
type ceph::FailedAssertion is thrown and never caught.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
for (int i=0; i<threads; i++) {
T *t = ls.front();
ls.pop_front();
- t->join();
+ try {
+ t->join();
+ }
+ catch (ceph::FailedAssertion &a) {
+ cout << "Failed assert in join(), exit." << std::endl;
+ delete t;
+ return -1;
+ }
delete t;
}