mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
[JENKINS-57725] - Wrap Proc.executor in ClassLoaderSanityThreadFactory (#4035)
This commit is contained in:
1 parent
c489b07f31
commit
b18b2e686d
1 file changed
+2
-1
@@ -26,6 +26,7 @@ package hudson;
|
||||
import hudson.Launcher.ProcStarter;
|
||||
import hudson.model.TaskListener;
|
||||
import hudson.remoting.Channel;
|
||||
import hudson.util.ClassLoaderSanityThreadFactory;
|
||||
import hudson.util.DaemonThreadFactory;
|
||||
import hudson.util.ExceptionCatchingThreadFactory;
|
||||
import hudson.util.NamingThreadFactory;
|
||||
@@ -138,7 +139,7 @@ public abstract class Proc {
|
||||
@CheckForNull
|
||||
public abstract OutputStream getStdin();
|
||||
|
||||
private static final ExecutorService executor = Executors.newCachedThreadPool(new ExceptionCatchingThreadFactory(new NamingThreadFactory(new DaemonThreadFactory(), "Proc.executor")));
|
||||
private static final ExecutorService executor = Executors.newCachedThreadPool(new ExceptionCatchingThreadFactory(new NamingThreadFactory(new ClassLoaderSanityThreadFactory(new DaemonThreadFactory()), "Proc.executor")));
|
||||
|
||||
/**
|
||||
* Like {@link #join} but can be given a maximum time to wait.
|
||||
|
||||
Reference in new issue
Block a user