Skip to content
Permalink
Browse files

[JENKINS-50296] Run ThreadPoolForRemoting as SYSTEM

  • Loading branch information
agentgonzo committed Mar 20, 2018
1 parent e5f61e2 commit f3053efdecbac933b2ebfb752b57a7e6825b31c0
Showing with 6 additions and 3 deletions.
  1. +6 −3 core/src/main/java/hudson/model/Computer.java
@@ -30,7 +30,6 @@
import hudson.Extension;
import hudson.Launcher.ProcStarter;
import hudson.slaves.Cloud;
import jenkins.util.SystemProperties;
import hudson.Util;
import hudson.cli.declarative.CLIResolver;
import hudson.console.AnnotatedLargeText;
@@ -65,7 +64,9 @@
import hudson.util.NamingThreadFactory;
import jenkins.model.Jenkins;
import jenkins.util.ContextResettingExecutorService;
import jenkins.util.SystemProperties;
import jenkins.security.MasterToSlaveCallable;
import jenkins.security.ImpersonatingExecutorService;

import org.apache.commons.lang.StringUtils;
import org.jenkins.ui.icon.Icon;
@@ -1352,9 +1353,11 @@ public String call() throws IOException {
}

public static final ExecutorService threadPoolForRemoting = new ContextResettingExecutorService(
new ImpersonatingExecutorService(
Executors.newCachedThreadPool(
new ExceptionCatchingThreadFactory(
new NamingThreadFactory(new DaemonThreadFactory(), "Computer.threadPoolForRemoting"))));
new ExceptionCatchingThreadFactory(
new NamingThreadFactory(
new DaemonThreadFactory(), "Computer.threadPoolForRemoting"))), ACL.SYSTEM));

//
//

0 comments on commit f3053ef

Please sign in to comment.
You can’t perform that action at this time.