aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-05-17 14:56:53 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-05-18 11:33:46 +0200
commit5076cc2f6b9c421359a1c711a20f9d1965226cec (patch)
tree88c35902b86e15fcb090f710b57488723303227b
parent5451c679ddca7f51755279be38adbff69365a339 (diff)
downloadsonarqube-5076cc2f6b9c421359a1c711a20f9d1965226cec.tar.gz
sonarqube-5076cc2f6b9c421359a1c711a20f9d1965226cec.zip
SONAR-7422 reset App sharedMemory at start/restart
-rw-r--r--server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java5
1 files changed, 5 insertions, 0 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 8a28dcfb430..6b62cafd60c 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
@@ -31,9 +31,12 @@ import org.slf4j.LoggerFactory;
import org.sonar.process.DefaultProcessCommands;
import org.sonar.process.Lifecycle;
import org.sonar.process.Lifecycle.State;
+import org.sonar.process.ProcessId;
import org.sonar.process.ProcessUtils;
import org.sonar.process.SystemExit;
+import static org.sonar.process.DefaultProcessCommands.reset;
+
public class Monitor {
private static final Logger LOG = LoggerFactory.getLogger(Monitor.class);
@@ -123,6 +126,8 @@ public class Monitor {
// failed to reset FileSystem
throw new RuntimeException("Failed to reset file system", e);
}
+ // reset sharedmemory of App
+ reset(fileSystem.getTempDir(), ProcessId.APP.getIpcIndex());
}
private void closeJavaLauncher() {