summaryrefslogtreecommitdiffstats
path: root/server/sonar-process-monitor
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-03-09 15:08:46 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-03-21 16:44:03 +0100
commitd99053cb0b890c0e3bd054379a923bcf21ce0dd8 (patch)
tree831b197d1d0959df2a5c0298219e37a000f85154 /server/sonar-process-monitor
parentb8b465d7418b6128bfda4e65d529392889aa8edb (diff)
downloadsonarqube-d99053cb0b890c0e3bd054379a923bcf21ce0dd8.tar.gz
sonarqube-d99053cb0b890c0e3bd054379a923bcf21ce0dd8.zip
SONAR-7435 replace DefaultProcessCommands constructors by static methods
Diffstat (limited to 'server/sonar-process-monitor')
-rw-r--r--server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java
index 9a9feeab241..6dc22a292f0 100644
--- a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java
+++ b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java
@@ -356,7 +356,7 @@ public class Monitor {
private boolean askedForStop() {
File tempDir = fileSystem.getTempDir();
- try (DefaultProcessCommands processCommands = new DefaultProcessCommands(tempDir, CURRENT_PROCESS_NUMBER, false)) {
+ try (DefaultProcessCommands processCommands = DefaultProcessCommands.secondary(tempDir, CURRENT_PROCESS_NUMBER)) {
if (processCommands.askedForStop()) {
return true;
}