(pid: number)
| 856 | } |
| 857 | |
| 858 | function isProcessAliveLocal(pid: number): boolean { |
| 859 | try { |
| 860 | process.kill(pid, 0); |
| 861 | return true; |
| 862 | } catch (err: unknown) { |
| 863 | const e = err as NodeJS.ErrnoException; |
| 864 | if (e.code === 'EPERM') return true; |
| 865 | return false; |
| 866 | } |
| 867 | } |
nothing calls this directly
no outgoing calls
no test coverage detected