Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Wait a while before effective shutdown.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 6 Feb 2013 09:52:04 +0000 (10:52 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 6 Feb 2013 10:25:20 +0000 (11:25 +0100)
examples/msg/cloud/masterslave_virtual_machines.c

index 8f2780e..e1527eb 100644 (file)
@@ -134,6 +134,9 @@ int master(int argc, char *argv[]) {
     MSG_task_send(finalize, mailbox_buffer);
   }
 
+  XBT_INFO("Wait a while before effective shutdown.");
+  MSG_process_sleep(2);
+
   xbt_dynar_foreach(vms,i,vm) {
     MSG_vm_shutdown(vm);
     MSG_vm_destroy(vm);