This commit is contained in:
Lixfel
2024-12-05 16:03:21 +01:00
parent c4849657df
commit 3ce958778a
@@ -109,6 +109,7 @@ public class Subserver {
this.shutdownCallback = shutdownCallback; this.shutdownCallback = shutdownCallback;
this.failureCallback = failureCallback == null ? this::fatalError : failureCallback; this.failureCallback = failureCallback == null ? this::fatalError : failureCallback;
this.checkpoint = processBuilder.command().contains("criu"); this.checkpoint = processBuilder.command().contains("criu");
this.thread = new Thread(this::run, "Subserver " + serverName);
try { try {
this.process = processBuilder.start(); this.process = processBuilder.start();
@@ -122,7 +123,6 @@ public class Subserver {
register(); register();
this.thread = new Thread(this::run, "Subserver " + serverName);
this.thread.start(); this.thread.start();
} }