(raw: string | undefined)
| 849 | } |
| 850 | |
| 851 | function parseHostPpid(raw: string | undefined): number | null { |
| 852 | if (raw === undefined || raw === '') return null; |
| 853 | const parsed = Number(raw); |
| 854 | if (!Number.isInteger(parsed) || parsed <= 1) return null; |
| 855 | return parsed; |
| 856 | } |
| 857 | |
| 858 | function isProcessAliveLocal(pid: number): boolean { |
| 859 | try { |
no test coverage detected