Skip to content
Snippets Groups Projects
Commit c8ad9921 authored by Georg Seibt's avatar Georg Seibt :nerd:
Browse files

use deamon threads in the ProcessExecutor

parent 41987c9a
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,13 @@ import static java.util.logging.Level.WARNING;
public class ProcessExecutor {
private static final Logger LOG = Logger.getLogger(ProcessExecutor.class.getCanonicalName());
private static final ExecutorService exService = Executors.newCachedThreadPool();
private static final ExecutorService exService = Executors.newCachedThreadPool(r -> {
Thread t = Executors.defaultThreadFactory().newThread(r);
t.setDaemon(true);
return t;
});
/**
* The result of a process execution.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment