Repository navigation
Commit b9ee2fe
nvx: wait for a launch log's claim release with the shared claim wait
LockedState::released_claim, which rechecks whether a process still
holds an interrupted launch's log claim, bounded the recheck with a
literal one second. The scratch module already names that wait,
CLAIM_RELEASE_WAIT, with its reason: a process that another thread of
the caller spawns holds an inherited copy of a claim from its fork
until it executes its program. The launch log's claim is inherited the
same way: its flock on Linux, and on Windows its open handles when the
log has no job, though not the job-based claim.
released_claim now waits CLAIM_RELEASE_WAIT, whose doc comment also
names the log claim and when it is inherited, so one constant bounds
both waits. The value stays one second and the expression keeps its
form, so recovery waits exactly as long as before. Both modules build
only with the cli feature.
The store and scratch unit tests pass unchanged at 8d47379 and
after the change on Windows: 45 passed, 2 ignored.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8d47379 commit b9ee2fe
2 files changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
| 77 | + | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
0 commit comments