From 5076cc2f6b9c421359a1c711a20f9d1965226cec Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Tue, 17 May 2016 14:56:53 +0200 Subject: [PATCH] SONAR-7422 reset App sharedMemory at start/restart --- .../src/main/java/org/sonar/process/monitor/Monitor.java | 5 +++++ 1 file changed, 5 insertions(+) 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() { -- 2.39.5