(pid: number)
| 800 | } |
| 801 | |
| 802 | function isProcessAliveLocal(pid: number): boolean { |
| 803 | try { |
| 804 | process.kill(pid, 0); |
| 805 | return true; |
| 806 | } catch (err: unknown) { |
| 807 | const e = err as NodeJS.ErrnoException; |
| 808 | if (e.code === 'EPERM') return true; |
| 809 | return false; |
| 810 | } |
| 811 | } |
nothing calls this directly
no outgoing calls
no test coverage detected