From: Adrien Lebre Date: Thu, 9 Oct 2014 15:49:41 +0000 (+0200) Subject: fix msg_host_is_avai... in msg_host_is_on - adrien X-Git-Tag: v3_12~760^2~73 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c92d2246c58caaf6a54f7314fdf8eddd9b076b97?ds=sidebyside fix msg_host_is_avai... in msg_host_is_on - adrien --- diff --git a/src/msg/msg_vm.c b/src/msg/msg_vm.c index 51516da662..e01091355d 100644 --- a/src/msg/msg_vm.c +++ b/src/msg/msg_vm.c @@ -1187,7 +1187,7 @@ static int do_migration(msg_vm_t vm, msg_host_t src_pm, msg_host_t dst_pm) XBT_DEBUG("wait for reception of the final ACK (i.e. migration has been correctly performed"); msg_task_t task = NULL; msg_error_t ret = MSG_TIMEOUT; - while (ret == MSG_TIMEOUT && MSG_host_is_avail(dst_pm)) //Wait while you receive the message o + while (ret == MSG_TIMEOUT && MSG_host_is_on(dst_pm)) //Wait while you receive the message o ret = MSG_task_receive_with_timeout(&task, ms->mbox_ctl, 10); xbt_free(ms->mbox_ctl);