From e922b6886664af0133af1f2176329bac47156ceb Mon Sep 17 00:00:00 2001 From: chrg6 Date: Sun, 8 Nov 2026 09:19:14 -0500 Subject: [PATCH] Let --probe-fs wait for its commits without marking the process as exiting. The probe waited for each Commit's background thread with fs_save_flush, which since Quit keeps saves safe also marks the process as exiting: every later Commit was refused ("the game is closing") and 20 of the 160 checks failed. It now waits with save_wait_commit; all checks pass. Co-Authored-By: Claude Opus 5.5 --- runtime/fs_host.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/fs_host.c b/runtime/fs_host.c index 92dd13e4..28c1011d 100644 --- a/runtime/fs_host.c +++ b/runtime/fs_host.c @@ -1480,10 +1480,11 @@ static void probe_restart(const uint64_t *uid) { CHECK(RES(S_MOUNT_SAVE, U("save"), U(uid)) == 0, "MountSaveData after a restart"); } -// Commit through the override, then wait for its background thread, as the checks read the disk next. +// Commit through the override, then wait for its background thread, as the checks read the disk next. Not with +// fs_save_flush: that also marks the process as exiting, and every later Commit of the probe would be refused. static uint32_t tx_commit(void) { uint32_t r = RES(S_COMMIT, U("save")); - fs_save_flush(); + save_wait_commit(); return r; }