XBT_INFO("Kill process"); /* - and then kill it */
MSG_process_kill(poor_victim);
- XBT_INFO("OK, goodbye now.");
+ XBT_INFO("OK, goodbye now. I commit a suicide.");
+ MSG_process_kill(MSG_process_self());
+
+ XBT_INFO("This line will never get displayed: I'm already dead since the previous line.");
return 0;
}
> [ 0.000000] (2:victim@Fafard) Suspending myself
> [ 10.000000] (1:killer@Tremblay) Resume process
> [ 10.000000] (1:killer@Tremblay) Kill process
-> [ 10.000000] (1:killer@Tremblay) OK, goodbye now.
+> [ 10.000000] (1:killer@Tremblay) OK, goodbye now. I commit a suicide.
> [ 10.000000] (0:maestro@) Simulation time 10