Skip to content

ProcStatus

Defined in: packages/core/src/kernel/lib/proc-parsers.ts:22

Parsed shape of /proc/<pid>/status.

All fields are strings — procFS produces text, and we do not coerce here. Missing lines in raw default to empty string (not undefined) so consumers can pattern-match without guards. Callers that need numeric pids / uids must parseInt themselves.

parseProcStatus

readonly cwd: string

Defined in: packages/core/src/kernel/lib/proc-parsers.ts:32

Process current working directory (absolute path). Empty string if absent.


readonly pid: string

Defined in: packages/core/src/kernel/lib/proc-parsers.ts:24

PID of the described process, as rendered by procFS. Empty string if absent.


readonly ppid: string

Defined in: packages/core/src/kernel/lib/proc-parsers.ts:26

Parent PID. Empty string if absent.


readonly state: string

Defined in: packages/core/src/kernel/lib/proc-parsers.ts:28

Process state — e.g. running, sleeping, zombie. Empty string if absent.


readonly uid: string

Defined in: packages/core/src/kernel/lib/proc-parsers.ts:30

Effective uid, rendered as decimal text. Empty string if absent.