make InterpreterProcess thread a daemon thread
authorAdam Megacz <adam@megacz.com>
Sat, 22 Aug 2009 21:32:17 +0000 (14:32 -0700)
committerAdam Megacz <adam@megacz.com>
Sat, 22 Aug 2009 21:32:17 +0000 (14:32 -0700)
src/edu/berkeley/fleet/interpreter/Interpreter.java

index c43ad40..53868ff 100644 (file)
@@ -162,7 +162,9 @@ public class Interpreter extends FleetTwoFleet {
 
     public FleetProcess run(final Instruction[] instructions) {
         InterpreterProcess ip = initialize(instructions);
-        new Thread(ip).start();
+        Thread ipt = new Thread(ip);
+        ipt.setDaemon(true);
+        ipt.start();
         return ip;
     }