Fixes #103 ("Use interprocess headers without exception handling")

This commit is contained in:
Ion Gaztañaga
2021-08-23 13:32:08 +02:00
parent f8d2da6a18
commit 4f0b3c2c93
68 changed files with 407 additions and 428 deletions

View File

@@ -26,7 +26,7 @@ int main ()
test::get_process_id_name(process_name);
const char *const shMemName = process_name.c_str();
try{
BOOST_TRY{
shared_memory_object::remove(shMemName);
//Create shared memory
@@ -85,10 +85,10 @@ int main ()
return 1;
}
}
catch(...){
BOOST_CATCH(...){
shared_memory_object::remove(shMemName);
throw;
}
BOOST_RETHROW
} BOOST_CATCH_END
shared_memory_object::remove(shMemName);
return 0;
}