X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8ef0e687a937adbed087bd3e8d7638295396d9a8..98337ea0d2f746aed1eb6871c31d8b7ff51b5648:/src/bindings/java/org/simgrid/msg/Process.java diff --git a/src/bindings/java/org/simgrid/msg/Process.java b/src/bindings/java/org/simgrid/msg/Process.java index 0fb5c6f13a..d8de151ba5 100644 --- a/src/bindings/java/org/simgrid/msg/Process.java +++ b/src/bindings/java/org/simgrid/msg/Process.java @@ -303,11 +303,7 @@ public abstract class Process implements Runnable { Msg.info("Unexpected behavior. Stopping now"); System.exit(1); } - catch(ProcessKilledError pk) { - /* The process was killed before its end. With a kill() or something. */ - //Msg.info("Forwarding a PKE"); - throw pk; - } + /* Let the ProcessKilledError (that we'd get if the process is forcefully killed) flow back to the caller */ } /** @@ -350,12 +346,12 @@ public abstract class Process implements Runnable { if (! t.isDaemon() && !t.getName().equals("main")) ids.add(t.getId()); } - if (ids.size() > 0) { - long[] id_array = new long[ids.size()]; + if (! ids.isEmpty()) { + long[] idArray = new long[ids.size()]; for (int i=0; i