修复 Pi resume 场景下的会话锁安全恢复#645
Open
codenum137 wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目标
修复 Firstmate 在 native Pi 0.80.7 resume 场景中的会话锁识别与安全恢复。
变更
bin/fm-lock.sh的锁分类与获取流程,按精确 basename 识别 harness 进程,并通过跨进程互斥和原子发布安全回收 missing/dead 锁。session_start时只通过生产锁 owner 恢复所有权,重新读取并确认 owned 后才启动监督;verified live other 与 malformed 锁保持原样并关闭失败。风险
bin/fm-lock.sh单一负责,所有不确定状态均关闭失败,不会 force、stash 或覆盖已验证的 live other。验证
bin/fm-lint.sh通过。