(raw: string | undefined)
| 88 | * i.e. already orphaned), so the watchdog doesn't latch onto init. |
| 89 | */ |
| 90 | export 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 | } |
no outgoing calls
no test coverage detected