Wait for lazyfs to crash before unmount

This commit is contained in:
2025-04-23 17:19:44 +02:00
parent 0c04079258
commit 81af021292

View File

@@ -172,7 +172,7 @@ public class LazyFs {
try {
var cmd = "echo \"lazyfs::crash::timing=after::op=write::from_rgx=*\" > " + fifoPath();
Log.info("Running command: " + cmd);
Runtime.getRuntime().exec(new String[]{"/bin/sh", "-c", cmd});
Runtime.getRuntime().exec(new String[]{"/bin/sh", "-c", cmd}).waitFor();
stop();
} catch (Exception e) {
throw new RuntimeException(e);