MCPcopy Index your code
hub / github.com/callstack/agent-device / readPositivePid

Function readPositivePid

scripts/clean-daemon.ts:94–97  ·  view source on GitHub ↗
(pid: number | undefined)

Source from the content-addressed store, hash-verified

92}
93
94function readPositivePid(pid: number | undefined): number | null {
95 if (typeof pid !== 'number') return null;
96 return Number.isInteger(pid) && pid > 0 ? pid : null;
97}
98
99function newestMtimeMs(dirPath: string): number {
100 let newest = statMtimeMs(dirPath);

Callers 2

clean-daemon.tsFile · 0.85
hasLiveDaemonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…