public void run() {
try {
while (true) {
LinkMessage msg = link.receive();
if (msg.containsStatus()) {
IsolateStatus is = msg.extractStatus();
System.out.println("Got status message: " + is);
//org.jnode.vm.Unsafe.debug("Got status message: " + is + "\n");
if (is.getState().equals(IsolateStatus.State.EXITED)) {
break;
}
} else {
System.out.println("Unknown message: " + msg);
}