Skip to content

keep marker: skip a stat read after a gone pid, retry Linux ticks once (Fixes #71) - #73

Merged
nachumi-a2zoperations merged 1 commit into
blowzer/fork-onlyfrom
fix/71-keep-marker-nits
Nov 17, 2026
Merged

nachumi-a2zoperations merged 1 commit into
blowzer/fork-onlyfrom
fix/71-keep-marker-nits

Conversation

@nachumi-a2zoperations

Copy link
Copy Markdown

Fixes #71

Follow-up to PR #69. Observe-only is unchanged. Same-second pid reuse stays the named residual.

  1. A gone pid (/proc/<pid>/environ unreadable) is null and is not followed by a /proc/<pid>/stat read.
  2. The close-budget comment states that now() is sampled before the ps spawn, so the 5s bound can be short by spawn latency (milliseconds).
  3. A failed first Linux start-ticks read (null or a throw) is retried once. The close marker then sees that value instead of failing closed.
  4. The exit-grace drift guard parses PROCESS_EXIT_GRACE_MS instead of matching the source text 2_000.

Rows for the behaviour changes (1 and 3) were red on the pre-fix code, then green. Node 24.22.1, run-vitest.mjs --config config/vitest.config.ts: pane-ownership 86/86. check:changed against 474ad64: 24/24, including typecheck.

Signed-off-by: Nachumi Eliyahu [email protected]

A null environ read no longer reads /proc/<pid>/stat. The close-budget
comment states that now() is sampled before the ps spawn, so the 5s bound
can be short by spawn latency (milliseconds). A failed first start-ticks
read is retried once, and the close marker then sees that value instead of
failing closed. The exit-grace drift guard parses PROCESS_EXIT_GRACE_MS
instead of matching the source text.

Observe-only is unchanged. Same-second pid reuse stays the named residual.

Fixes #71

Signed-off-by: Nachumi Eliyahu <[email protected]>
@nachumi-a2zoperations
nachumi-a2zoperations merged commit 0a96c05 into blowzer/fork-only Nov 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant