mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 15:59:59 -04:00
The review found that rtss_limit.c state_put took a state file plat_file_read could not read for a missing one: a file another program held open (a scan) was rewritten with this profile's line alone, or deleted when the run removed its line, and the lines of other executables that share the folder (dev or probe builds) were lost. state_put now returns 0 when the read gave nothing but plat_file_size finds the file with bytes in it; the run then goes on as with a file that cannot be written (one log line, and a crash puts the profile back as an orderly exit does). An empty file is still rewritten. tests/rtss_worker_check.c state_locked checks a file holding another executable's line that does not read: the run limits as before, logs it, and the file stays as it was through the exit. Not reproduced before the change. Checks that passed: tests/rtss_limit_check.py, pass_cc_check.py --wall on rtss_limit.c, tools/check_content.py --staged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 KiB
36 KiB