From da2b12f413710c810bc7298ee01739e3ad4ba141 Mon Sep 17 00:00:00 2001 From: Samuel Lepetit Date: Thu, 21 Jun 2012 15:05:55 +0200 Subject: [PATCH] Check if the host is down after a communication --- src/simix/smx_network.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index 0d7257fa59..c72e0af016 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -642,6 +642,11 @@ void SIMIX_comm_finish(smx_action_t action) } } + if (surf_workstation_model->extension. + workstation.get_state(simcall->issuer->smx_host->host) != SURF_RESOURCE_ON) { + simcall->issuer->context->iwannadie = 1; + } + simcall->issuer->waiting_action = NULL; xbt_fifo_remove(simcall->issuer->comms, action); SIMIX_simcall_answer(simcall); -- 2.20.1