Skip to content

Commit 50182d6

Browse files
thymikeeclaude
andcommitted
docs(host-kit): describe the ps fallback for identity rows
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 4de7249 commit 50182d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/host-kit/src/internal/host-process.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ function parseHostProcessIdentityRows(stdout: string): HostProcessIdentityRow[]
365365
if (!match) continue;
366366
const pid = Number.parseInt(match[1]!, 10);
367367
if (!Number.isInteger(pid) || pid <= 0) continue;
368-
// On Linux both facts come from one /proc read; the ps row only covers other hosts.
368+
// On Linux both facts come from one /proc read; the ps row is the fallback when /proc is unreadable.
369369
const linux = readLinuxProcessStat(pid);
370370
rows.push(linux ? { pid, ...linux } : { pid, state: match[2]!, startTime: match[3]! });
371371
}

0 commit comments

Comments
 (0)