Improve Subserver.run for CRIU

This commit is contained in:
2025-07-29 12:04:48 +02:00
parent e04f0d4ad1
commit 1355b57a93
@@ -220,7 +220,7 @@ public class Subserver {
try { try {
if (checkpoint) { if (checkpoint) {
start(process.getErrorStream(), line -> line.contains("Restore finished successfully.")); start(process.getErrorStream(), line -> line.contains("Restore finished successfully."));
Thread.sleep(300); start(process.getInputStream(), line -> line.contains("Checkpoint restored"));
} else { } else {
start(process.getInputStream(), line -> { start(process.getInputStream(), line -> {
if (line.contains("Loading libraries, please wait")) if (line.contains("Loading libraries, please wait"))