#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
+#include <cxxabi.h>
#include <dpl/errno_string.h>
#include <dpl/log/log.h>
LogError("CKM::MessageBuffer::Exception " << e.DumpToString());
} catch (const std::exception &e) {
LogError("STD exception " << e.what());
+ } catch (const abi::__forced_unwind &) {
+ LogDebug("abi::__forced_unwind caught. Thread cancelation.");
+ throw;
} catch (...) {
LogError("Unknown exception occured");
}
} catch (const std::exception &e) {
LogError("std exception occured: " << e.what());
return CKMC_ERROR_UNKNOWN;
+ } catch (const abi::__forced_unwind &) {
+ LogDebug("abi::__forced_unwind caught. Thread cancelation.");
+ throw;
} catch (...) {
LogError("Unknown exception occured.");
return CKMC_ERROR_UNKNOWN;
} catch (const std::exception &e) {
LogError("STD exception " << e.what());
error(CKM_API_ERROR_UNKNOWN);
+ } catch (const abi::__forced_unwind &) {
+ LogDebug("abi::__forced_unwind caught. Thread cancelation.");
+ throw;
} catch (...) {
LogError("Unknown exception occured");
error(CKM_API_ERROR_UNKNOWN);