(raw: string | undefined)
| 793 | } |
| 794 | |
| 795 | function parseHostPpid(raw: string | undefined): number | null { |
| 796 | if (raw === undefined || raw === '') return null; |
| 797 | const parsed = Number(raw); |
| 798 | if (!Number.isInteger(parsed) || parsed <= 1) return null; |
| 799 | return parsed; |
| 800 | } |
| 801 | |
| 802 | function isProcessAliveLocal(pid: number): boolean { |
| 803 | try { |
no test coverage detected