X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ed49d3fb7b2cab0c93fb3e1d686e3041598b70d4..44da6699977c942b1a34734e118cb9842aaeb94b:/examples/master_slave_kill/Master.java?ds=sidebyside diff --git a/examples/master_slave_kill/Master.java b/examples/master_slave_kill/Master.java index e3dc16e2e1..38c6ffbd66 100644 --- a/examples/master_slave_kill/Master.java +++ b/examples/master_slave_kill/Master.java @@ -27,6 +27,7 @@ public class Master extends Process { try { Msg.info("Create process on host 'alice'"); process2 = new Slave("alice","slave"); + process2.start(); } catch (MsgException e){ System.out.println("Process2!"); } @@ -41,7 +42,7 @@ public class Master extends Process { } } - Process.kill(process2); + process2.kill(); Msg.info("Process2 is now killed, should exit now"); }