X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b388d3d63d20d29dceaf62de85633705799bccf0..d5e1e19fefb2e6b1c1b7ec559ea8dd3bba91baf2:/src/kernel/context/ContextBoost.cpp diff --git a/src/kernel/context/ContextBoost.cpp b/src/kernel/context/ContextBoost.cpp index a0fb566231..e5b557f9ed 100644 --- a/src/kernel/context/ContextBoost.cpp +++ b/src/kernel/context/ContextBoost.cpp @@ -5,6 +5,7 @@ #include "ContextBoost.hpp" #include "context_private.hpp" +#include "simgrid/Exception.hpp" #include "src/simix/smx_private.hpp" XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_context); @@ -113,10 +114,12 @@ void BoostContext::wrapper(BoostContext::arg_type arg) #endif try { (*context)(); - context->Context::stop(); } catch (StopRequest const&) { XBT_DEBUG("Caught a StopRequest"); + } catch (simgrid::HostFailureException const&) { + XBT_DEBUG("Caught an HostFailureException"); } + context->Context::stop(); ASAN_ONLY(context->asan_stop_ = true); context->suspend(); }