- jxbt_throw_by_name(env, "org/simgrid/msg/ProcessKilledError", xbt_strdup("Process killed :)"));
- // TODO emptty/adsein, comment the following line. This avoid to raise process cancelled exception at the Java level but
- // it impacts the shutdown of VMs :( see java-cloud example
- THROWF(cancel_error, 0, "process cancelled");
+ jxbt_throw_by_name(env, "org/simgrid/msg/ProcessKilledError", bprintf("Process %s killed: ", MSG_process_get_name( (msg_process_t)context)));
+ XBT_DEBUG("Trigger a cancel error at the C level");
+ THROWF(cancel_error, 0, "process cancelled");