commit | 418918cce29caafb798d93c05f9d25508b5305a2 | [log] [tgz] |
---|---|---|
author | ecarm002@ucr.edu <ecarm002@ucr.edu> | Wed Aug 28 16:15:17 2013 -0700 |
committer | ecarm002@ucr.edu <ecarm002@ucr.edu> | Wed Aug 28 16:15:17 2013 -0700 |
tree | de702f312e9003b21bbde96694595cfa545fbc1e | |
parent | bff9f4161e32a5c61e59e1482fc0adec5fef5675 [diff] |
Instead of adding stop commands to the running thread, this commit changes the thread to be a daemon thread.
diff --git a/hyracks/hyracks-control/hyracks-control-common/src/main/java/edu/uci/ics/hyracks/control/common/application/ApplicationContext.java b/hyracks/hyracks-control/hyracks-control-common/src/main/java/edu/uci/ics/hyracks/control/common/application/ApplicationContext.java index 2ca7ccf..828f2fb 100644 --- a/hyracks/hyracks-control/hyracks-control-common/src/main/java/edu/uci/ics/hyracks/control/common/application/ApplicationContext.java +++ b/hyracks/hyracks-control/hyracks-control-common/src/main/java/edu/uci/ics/hyracks/control/common/application/ApplicationContext.java
@@ -31,7 +31,9 @@ protected IJobSerializerDeserializerContainer jobSerDeContainer = new JobSerializerDeserializerContainer(); protected ThreadFactory threadFactory = new ThreadFactory() { public Thread newThread(Runnable r) { - return new Thread(r); + Thread t = new Thread(r); + t.setDaemon(true); + return t; } };