From: Sébastien Lesaint Date: Tue, 17 May 2016 12:56:53 +0000 (+0200) Subject: SONAR-7422 reset App sharedMemory at start/restart X-Git-Tag: 5.6-RC1~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F989%2Fhead;p=sonarqube.git SONAR-7422 reset App sharedMemory at start/restart --- 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() {