- xbt_ex_t e;
- TRY {
- msg_host_t jupiter = MSG_host_by_name("Jupiter");
-
- XBT_INFO("Master starting");
- MSG_process_sleep(0.5);
-
- msg_comm_t comm = NULL;
- {
- msg_task_t task = MSG_task_create("COMM", 0, 100000000, NULL);
- comm = MSG_task_isend(task, mailbox);
- }
-
- MSG_process_sleep(0.5);
-
- XBT_INFO("Turning off the slave host");
- MSG_host_off(jupiter);
-
- if (comm) {
- MSG_comm_wait(comm, -1);
- MSG_comm_destroy(comm);
- }
- XBT_INFO("Master has finished");
+ msg_host_t jupiter = MSG_host_by_name("Jupiter");
+
+ XBT_INFO("Master starting");
+ MSG_process_sleep(0.5);
+
+ msg_comm_t comm = NULL;
+ {
+ msg_task_t task = MSG_task_create("COMM", 0, 100000000, NULL);
+ comm = MSG_task_isend(task, mailbox);