MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / getParentPollMs

Function getParentPollMs

src/core/process-lifecycle.ts:62–64  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

60}
61
62export function getParentPollMs(value: string | undefined): number {
63 return Math.max(MIN_PARENT_POLL_MS, toIntegerOr(value, DEFAULT_PARENT_POLL_MS));
64}
65
66export function isProcessAlive(pid: number, killCheck: (pid: number, signal: number) => void = process.kill): boolean {
67 if (!Number.isFinite(pid) || pid <= 0) return false;

Callers 1

mainFunction · 0.85

Calls 1

toIntegerOrFunction · 0.70

Tested by

no test coverage detected