MCPcopy
hub / github.com/colbymchenry/codegraph / parseHostPpid

Function parseHostPpid

src/mcp/ppid-watchdog.ts:90–95  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

88 * i.e. already orphaned), so the watchdog doesn't latch onto init.
89 */
90export function parseHostPpid(raw: string | undefined): number | null {
91 if (raw === undefined || raw === '') return null;
92 const parsed = Number(raw);
93 if (!Number.isInteger(parsed) || parsed <= 1) return null;
94 return parsed;
95}

Callers 3

MCPServerClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected