try {
Msg.info("Create process on host 'alice'");
process2 = new Slave("alice","slave");
+ process2.start();
} catch (MsgException e){
System.out.println("Process2!");
}
}
}
-// FinalizeTask task = new FinalizeTask();
-// Msg.info("Send Mail2!");
-// task.send("mail2");
-
- Process.waitFor(10);
- Process.kill(process2);
-
+ process2.kill();
+
+ Msg.info("Process2 is now killed, should exit now");
}
}