aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() {